nikolas_serafini

Lista 3 - Exercício 51

Jun 16th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     float r;
  7.     char answer = 'S';
  8.  
  9.     while (answer == 'S')
  10.     {
  11.         printf("Entre com o valor do raio :\n");
  12.         scanf("%f",&r);
  13.         printf("Area = %f\n",M_PI*pow(r,2));
  14.         printf("Deseja calcular mais areas ? (S/N)\n");
  15.         answer = getche();
  16.         printf("\n");
  17.     }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment