Advertisement
HyperSensualNarwhal

Geomethrical Hell

Dec 12th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3.  
  4. using std::cout;
  5. using std::cin;
  6. using std::endl;
  7.  
  8. int main()
  9. {
  10.  
  11. //Arrow
  12.     /*for (int i = size; i >= 0; cout << endl, i--) for (int j = (size - 1 - 2 * i < 0) ? size - 1 - i : i; j >= 0; cout << '*', j--);*/
  13.  
  14.     //Square
  15.     /*for (int size = (cout << "Введите размер: ", cin >> size, size), i = 0; i < size; i++, cout << endl) for (int j = 0; j < size; j++, cout << '*' << " ");*/
  16.  
  17.     //Triangle-1
  18.     /*for (int size = (cout << "Введите размер: ", cin >> size, size), i = 0; i < size; i++, cout << endl) for (int j = 0; j <= i; j++, cout << '*' << " ");*/
  19.  
  20.     //Triangle-2
  21.     /*for (int size, i = (cout << "Введите размер: ", cin >> size, size); i > 0; i--, cout << endl) for (int j = 0; j < i; j++, cout << '*' << " ");*/
  22.  
  23.     //Triangle-3
  24.     /*for (int size = (cout << "Введите размер: ", cin >> size, size), i = 0; i < size; i++, cout << endl) for (int j = 0; j < size; ((j < i) ? cout << " " : cout << '*'), cout << " ", j++);*/
  25.  
  26.     //Triangle-4
  27.     /*for (int size, i = (cout << "Введите размер: ", cin >> size, size - 1); i >= 0; i--, cout << endl) for (int j = 0; j < size; ((j < i) ? cout << " " : cout << '*'), cout << " ", j++);*/
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement