Commit a73b827f by BellCodeEditor

auto save

parent 87bced70
Showing with 14 additions and 0 deletions
#include<bits/stc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int a=0;
for(int i=0;i<n;i++){
a+=i;
}
cout<<a<<endl;
return 0;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment