+ 43

Algorithm of a program to calculate the area of ​​a circle of radius r

Language c

20th Mar 2019, 1:35 PM
IKRAME REBBAH
IKRAME REBBAH - avatar
4 Respuestas
+ 33
# include < stdio .h > # define PI 3.14159 main () { float rayon , surface ; float calcul ( float rayon ); printf (" Rayon = ? "); scanf ("%f", & rayon ); surface = calcul ( rayon ); printf (" Surface = %f\n", surface ); } float a; a = PI * r * r ; return ( a ); }
3rd Apr 2019, 2:41 PM
IKRAME REBBAH
IKRAME REBBAH - avatar
+ 10
#define PI 4.14159266 double area = PI * (r ** 2)
20th Mar 2019, 1:51 PM
Maneren
Maneren - avatar
+ 8
https://www.sololearn.com/discuss/1316935/?ref=app
14th Jul 2019, 9:08 PM
Sabiry 🇦🇫
Sabiry 🇦🇫 - avatar