Advertisement
ranisalt

Pirocâmide

Feb 13th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int a;
  9.         cout << "Informe o número:" << endl;
  10.     cin >> a;
  11.     for (int i = 1; i <= a; i++)
  12.     {
  13.         for (int j = 1; j <= i; j++)
  14.         {
  15.             cout << j;
  16.         }
  17.         cout << endl;
  18.     }
  19.     system("pause");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement