Reverse Triangle shape.
#include<iostream>
#include<string>
using namespace std;
int main()
{
int sad;
string end;
cout << "Enter Row Number = ";
cin >> sad;
cout << "Enter Character To Print In
Your Shape = ";
cin >> end;
for (int c = sad;
c >= 1; --c)
{
for (int z = 1; z
<= c; ++z)
{
cout << end;
}
cout << endl;
}
system("pause");
}
Comments
Post a Comment