Guest User

Untitled

a guest
Sep 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main ()
  5. {
  6. float high , base , radius , side ;
  7.  
  8. printf ("Triangle Area Calculator\n");
  9. printf ("Enter high : ");
  10. scanf ("%f", &high);
  11. printf ("Enter base : ");
  12. scanf ("%f", &base);
  13. printf ("Area of Triangle = %.2f ",0.5*base*high);
  14. printf ("\n-------------------------------\n");
  15.  
  16. printf ("Circle Area Calculator\n");
  17. printf ("Enter Radius : ");
  18. scanf ("%f",&radius);
  19. printf ("Area of Triangle = %.2f", M_PI*(radius*radius) );
  20. printf ("\n-------------------------------\n");
  21.  
  22. printf ("Square Area Calcutator\n");
  23. printf ("Enter Side : ");
  24. scanf ("%f",&side);
  25. printf ("Area of Triangle = %.2f", side*side);
  26.  
  27. return 0 ;
  28. }
Add Comment
Please, Sign In to add comment