1001

#includeusing namespace std;int main(){int a,b;int sum=0;cin>>a>>b;for(int i=1;i>a>>b;for(;a查看全文

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

1001

#include<iostream>using namespace std;int main(){int a,b;int sum=0;cin>>a>>b;for(int i=1;i<=b;i++){sum=sum+i;}return 1;}#include<iostream>using namespace std;int main(){int a,b;int sum=0;cin>>a>>b;for(;a<=b;a++){sum=sum+a;}count<<a<<endl;cout<

写文章