Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define PI 3.14159265
- float AireCercle (float r)
- {
- return PI * r * r;
- }
- int main()
- {
- char rep;
- do
- {
- float rayon;
- printf("Entrez le rayon du cercle: ");
- scanf ("%f", &rayon);
- printf("Un cercle de rayon %.2f a %.2f de surface\n", rayon, AireCercle (rayon));
- printf("Voulez-vous calculer une autre surface (o/n)? ");
- scanf(" %c", &rep);
- }
- while (rep == 'o');
- return 0;
- }
Add Comment
Please, Sign In to add comment