Advertisement
Guest User

pizza for anik bhai :P

a guest
Jan 24th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstdio>
  3. using namespace std;
  4. int main()
  5. {
  6. int a,x;
  7. cin>>a;
  8. x=(a*a+a)/2+1;
  9. cout<<"The maximum pieces are :"<<x<<endl;
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement