Advertisement
Dido09

C - Circle

May 22nd, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(){
  5.  
  6. float Pi, circumference, diameter, radius;
  7. Pi = 3.14;
  8.  
  9. printf("Enter the circumference: ");
  10. scanf("%f", &circumference);
  11. printf("Enter the radius: ");
  12. scanf("%f", &radius);
  13.  
  14. printf("The Circumferemce is: %f\n", circumference / Pi);
  15. printf("The parameter is %f and the area is %f\n", 2 * Pi * radius,Pi * radius * radius);
  16.  
  17.  
  18. return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement