#include <iostream>
#include <cstdlib>
#include <windows.h>
usingnamespace std;
int main()
{
int lines = 5; // amount of lines
int a = 1; // the number to be displayed
int b = 1; // amount of numbers per line
do
{
for(int c = 0; c < b; c++) // make a new variable c and increment until its as big as b
{
cout << a << ' '; // print the number to the console as c is rising
a = a*2;
}
cout << endl; // print a new line to the console
b++; // increment b, the amount of numbers per line
//Sleep(500); // remove the first 2 slashes and this line will make the program sleep for half of a second
} while(lines-- > 0); // decrement amount of lines, repeat with increased b if the value is bigger than 0
return 0;
}