program in c++ source code:

Program:

#include <iostream>
//iostream is a header file of
standard input output function.
using namespace std;
int main()
// Th execution of program start with the main function
{
int i, j, k;
cout << "Enter number of rows: ";
// cout is used to display the same statemnet in the output.
cin >> k; // Cin used to enter a value by the user.
for(i = k; i >= 1; i--) // Nested For Loop ,
//This is the outer for loop represent the number of rows.
{
for(j = 1; j <= i; j++)
//This is the inner for loop represent the number of columns.
{
cout << "* ";
}
// ending line after each row
cout << "\n";
}
return 0;
}
OUTPUT:

OUTPUT: