Home > Back-end > Blue cup introduction to the area of a circle
Blue cup introduction to the area of a circle
Time:10-09
#include # define PI 3.1415926 Int main () { Int r; Double s; The scanf (" % d \ n ", r); S=pirr; Printf (" %. 7 lf \ n ", s); return 0; } Blue cup ShiTiJi introductory training for the area of a circle, ask for a radius, the output corresponding to the area of 7 decimal places, but I did nothing output results, in the editor is still the same, want to please the great god save the ignorance of small white, so I write what is not appropriate??
CodePudding user response:
That, don't copy paste the code has some symbols, according to the scanf is inside & amp; S=PI * r * r
CodePudding user response:
The scanf inside remove \ n
CodePudding user response:
Or according to the two enter after you input radius