hi. can you please help me with this problem. its giving meheadache since last week
Write a program using DO WHILE statement that displays aninverted equilateral triangle using asterisks. No asterisk shouldbe adjacent to one another. The height will depend on the userinput.
[Hint]
You can use an IF statement to eliminate the initial space forthe first row.
upon searching the net, i stumble upon this code:
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
int main ()
{
cout << “Laboratory Exercises 006n”;
cout << “Problem No.3n”;
cout << “Sir Markson Francisconn”;
//declaration
int a, b;
float h;
//taking input for height from user
cout<<“Enter the preferred number: “;
cin>> h;
cout<<“nn”;
a = 1;
do {
b = 1;
do {
if
PayPal Gateway not configured
PayPal Gateway not configured