Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. double aoc(double r);
  3. int main()
  4. {
  5. double r,a;
  6.  
  7. printf("Enter the value of radius of circle :");
  8. scanf("%lf",&r);
  9. a=aoc(r);
  10. printf("The area of the circle is :%lf\n",a);
  11.  
  12. return 0;
  13. }
  14. double aoc(double r)
  15. {
  16.  
  17. double area;
  18. area=3.14*r*r;
  19.  
  20. return area;
  21.  
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement