The question is this:
A year, about 3.156 x 107 s, ask for your age, according to the age and how many seconds,
Enter description:
The age line, including an integer (0 & lt; Age<=200),
Output description:
Output a line contains an integer, age corresponds to the number of seconds,
Myself enter 20 when the result is right but this is the input 200 answers and I also tried to the answer to this question by other I wrong on my devc++ what is going on in the ball the ball help children meowed
CodePudding user response:
I really don't know how this ball the ball the great god save meCodePudding user response:
B in the right data type, for your reference:# include
Int main ()
{
Int the age;
Double b=0;
The scanf (" % d ", & amp; The age);
If (age<0 | | age & gt; 200) return 1;
B=age 3.156 e7 *;
Printf (" % b=g, b=%. 0 f \ n ", b, b);
return 0;
}
CodePudding user response:
But this is what in cattle guest is to pinch my fansCodePudding user response:
3.156 e7 is floating point Numbers, computer processing in a different way, maybe blind cat with dead mouse in the guest,CodePudding user response:
The ~ thank you!!!!!