IvoSilva

[PROG1] Ficha 1 | Exercício 1

Nov 20th, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. main()
  3. {
  4.     float raio ;   
  5.     printf ("Raio? ");
  6.     scanf ("%f", &raio);
  7.     printf ("Perímetro = %0.4f\n", raio * 2 * 3.1416);
  8.     printf ("Área = %0.4f\n", 3.1416 * raio * raio) ;
  9.     return 0 ;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment