Ask the user for a number between 1 and 32 Display an INVERT
Ask the user for a number between 1 and 32. Display an INVERTED triangle, based on the number given. For example:
Solution
#include<iostream>
 using namespace std;
 int main()
 {
 int n;
 cout<<\"\  enter integer between 1 and 32:\";
 cin>>n;
 for(int i=n;i>=1;i++)
 {
 for(int j=1;j<=i;j++)
 {
 printf(\"*\");
 }
 printf(\"\ \");
 }
 return 0;
 }

