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

CodePudding user response:

reference X_chromosome reply: 3/f
or according to two after you enter the radius enter

No no, I remove the \ n, there is still no output, it is the program itself has a problem

CodePudding user response:

Printf (" %. 7 f \ n ", s);

CodePudding user response:


Run no trouble, no problem

CodePudding user response:

Run well, no problem, but the system does not pass, do not

CodePudding user response:

refer to 6th floor 燚 recognition response:

No trouble, run fine

Run well, no problem, but the system does not pass, do not

CodePudding user response:

How do you send pictures, I don't how to send you the screenshot

CodePudding user response:

references 9 f qq_40332665 response:
how did you send pictures, I don't how to send you the screenshot

You don't post can send the pictures? You capture preserved hair line

CodePudding user response:

Don't know how to send in the floor??
  • Related