Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a,b=1;
- cin>>a;
- for(int i=1; i<a; i++)
- {
- int c=i*4;
- b=b+c;
- }
- cout<<b<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement