Skip to content

Instantly share code, notes, and snippets.

@Ambratolm
Created June 25, 2017 11:23
Show Gist options
  • Save Ambratolm/882e997791cdd57a3a19e15623eacfa0 to your computer and use it in GitHub Desktop.
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.
#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