Code :-
#include <iostream>
using namespace std;
int main()
{
int numb=0;
cout<<"Enter Value for size of triangle : = ";
cin>>numb;
for(int i=0;i<numb;i++)
{
for(int b=numb;b>i;b--)
{
cout<<"*";
}
cout<<endl;
}
return 0;
}
Output
Find Tons of C++ Programming examples, projects with code. Also find books solutions.
0 Questions:
Post a Comment