Problem2403--规律循环-练习三训练

2403: 规律循环-练习三训练

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 563  Solved: 398
[Status] [Submit] [Creator:]

Description

请将以下程序归纳成循环结构
int n,sum=0;
cin>>n;
sum=sum+n/2;
sum=sum+n/4;
sum=sum+n/6;

sum=sum+n/20;
cout<<sum;

Sample Input Copy

840

Sample Output Copy

1229

Source/Category

 入门