- 循环基础题2
- 12345670
- @ 2024-3-31 14:28:50
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a=0,b=0;
    for(int i=50;i<=100;i++)
    {
        a=a+i;
    
    }
    for(int i=100;i<=200;i++)
    {
        b=b+i;
    
    }
    cout<<a<<endl;
    cout<<b<<endl;
    return 0;
}
0 comments
  
  No comments so far...
            Information
- ID
- 821
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 113
- Accepted
- 22
- Uploaded By
 
      