2030 - P315 14
Time Limit : 1 秒
Memory Limit : 128 MB
P315 14
你的main函数的内容为:
int main()<br />
{
int x = 1;
float avg;
int n;
cin>>n;
while (x < 20){
avg = RunningAvg(x);
cout<<"Average is: "<<avg<<endl;
x= x +3;
}
return 0;
}
<br />
Input
n
Output
每次调用后函数的返回结果。
Examples
Input Format
20
Output Format
Average is: 1 Average is: 2.5 Average is: 4 Average is: 5.5 Average is: 7 Average is: 8.5 Average is: 10