Advertisement
RapixRapi

Piramida

Nov 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n,i,j;
  6.     cin>>n;
  7.     for(i=1;i<=n;i++)
  8.     {
  9.         for(j=1;j<=i;j++)
  10.             cout<<j<<" ";
  11.             cout<<endl;
  12.     }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement