#include <iostream>
using namespace std;
int main()
{
int rows;
cout << "Enter number of rows: ";
cin >> rows;
int i = 1;
while(i <= rows)
{
int j = 1
while(j <= i)
{
cout << "* ";
j++
}
cout << "
";
i++;
}
return 0;
}
Code Example |
---|
Cpp :: unclebigbay |
Cpp :: using find in vector c++ |
Cpp :: how to know in flutter if signin with user completed in firebase |
Cpp :: range of long long in c++ |
Cpp :: c++ check if string contains non alphanumeric |
Cpp :: helloworld in c++ |
Cpp :: how to initialize 2d vector in c++ |
Cpp :: clang cpp compile command |
Cpp :: compare float values c++ |
Cpp :: fabs() c++ |
Cpp :: cpp split string by space |
Cpp :: c++ string remove last character |
Cpp :: optimized bubble sort |
Cpp :: typedef vector c++ |
Cpp :: C++ Program to Reverse an Integer |
Cpp :: wine linux |
Cpp :: random number in a range c++ |
Cpp :: c++ check if char is number |
Cpp :: set precision with fixed c++ |
Cpp :: how to install boost c++ on windows |
Cpp :: what is the associative property of an operator |
Cpp :: file open cpp |
Cpp :: c++ create multidimensional vector |
Cpp :: C++ array sort method |
Cpp :: c++ for else |
Cpp :: c++ do while loop |
Cpp :: size of stack in c++ |
Cpp :: cin.getline |
Cpp :: for c++ |
Cpp :: sort a vector c++ |