Created
June 25, 2017 11:23
-
-
Save Ambratolm/882e997791cdd57a3a19e15623eacfa0 to your computer and use it in GitHub Desktop.
Ecrire un algorithme qui calcule et affiche la surface d’un cercle de rayon r.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
main() | |
{ | |
float R,S; | |
printf("Surface d'un cercle de rayon R:\n"); | |
printf("********************************\n"); | |
printf("Entrez le rayon R: "); | |
scanf("%f",&R); | |
S=R*R*3,14; | |
printf("La surface du cercle est: %f\n", S); | |
printf("********************************\n"); | |
system("pause"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment