Course Solutions Uncategorized (Solved) : Hi Please Help Problem Giving Headache Since Last Week Write Program Using Statement Displ Q30557498 . . . .

(Solved) : Hi Please Help Problem Giving Headache Since Last Week Write Program Using Statement Displ Q30557498 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post