Home > Back-end >  So please see brother help beginners can not find out the mistakes
So please see brother help beginners can not find out the mistakes

Time:11-01

# include
# include
Int main ()
{
Float area L v m;
Float r=1.4;
Float M=3.1415
Area=M * r * r;
L=2 Mr;
V=(M * r * r * r) four thirds.
M=2 Mr * r;
Printf (" so surface area of the circle is; % 0.4 f \ n circumference is: % f \ n ", area, L);
Printf (" therefore the volume of the ball: % 0.4 f \ n surface area for; % f \ n ", v, m);

Return=0



}

CodePudding user response:

Float area L v m; It should be this: float area, L, v, m; Several variables between should have ', 'no,
L=2 Mr; It should be this: L=2 * M * r; Must have a '*' number,
M=2 Mr * r; The words of the same: m=2 * m * r;

CodePudding user response:

V=(M * r * r * r) four thirds. This change: v=(M * r * r * r * four thirds;

CodePudding user response:

Float r=1.4;
Float float in front of M=3.1415 this two sentences can be omitted, direct assignment: r=1.4; M=3.1415;
  • Related