Posted by Dan Nuffer on 1999-09-12
>
> float l,b,r,area;
>
> printf("Enter radius : ");
> scanf("%d",&r);
Here you are telling scanf to read in an int (%d) into a float. You should
use %f instaed of %d. That will fix at least one bug in your program!
Later,
Dan
Previous post | Next post | Timeline | Home