Question: Program is in C++ below is what I have done myself but the output is wrong I get a extra line of space im unable

Program is in C++ below is what I have done myself but the output is wrong I get a extra line of space im unable to remove please help fix or even rewrite my code.

#include using namespace std;

int main() { int rows;

cin >> rows;

for(int i = rows; i >= 1; i--) { for(int j = 1; j = i; v--) { cout

Program is in C++ below is what I have done myself but

the output is wrong I get a extra line of space im

4.32 For loops -- output an up-side-down triangle 2 Write a program that accepts an integer input from the user and output an up-side-down triangle. For example, if the user inputs 5 The program outputs ***** **** *** ** * If the user inputs a negative integer, the program will output 1: Compare output ^ 0/1 Output is nearly correct; but whitespace differs. See highlights below. Special character legend Input 5 ***** **** *** Your output ** * ***** **** *** Expected output ** * 2: Compare output ^ 0/1 Output is nearly correct; but whitespace differs. See highlights below. Special character legend Input 2 ** Your output * sk Expected output * 3: Compare output 0/1 Output is nearly correct; but whitespace differs. See highlights below. Special character legend ********** *** tak sk ******** kkkkkk ***** ***** Your output ***** **** *** ** *********** * * * * * * * * * * kkkk ***** ********* **** Expected output ******

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!