Advertisement
Guest User

1st assignment version 2

a guest
Nov 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     for (int i = 0; i < 5; i++)
  7.     {
  8.         if (i == 0)
  9.             cout << "*" << endl;
  10.         if (i == 1)
  11.             cout << "**" << endl;
  12.         if (i == 2)
  13.             cout << "***" << endl;
  14.         if (i == 3)
  15.             cout << "****" << endl;
  16.         if (i == 4)
  17.             cout << "*****";
  18.     }
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement