Advertisement
Guest User

assignment 1 version 2

a guest
Nov 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 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.     int x;
  21.     cin >> x;
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement