C++, USING A WHILE LOOP, get the integers from the user. Then, USING NESTED FOR
ID: 3625791 • Letter: C
Question
C++, USING A WHILE LOOP, get the integers from the user. Then, USING NESTED FOR LOOPS, create a triangle of that number using asterisks. When the user enters a zero, end the program.Sample Output
triangle for 51:
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
********************
*********************
**********************
***********************
************************
*************************
**************************
***************************
****************************
*****************************
******************************
*******************************
********************************
*********************************
**********************************
***********************************
************************************
*************************************
**************************************
***************************************
****************************************
*****************************************
******************************************
*******************************************
********************************************
*********************************************
**********************************************
***********************************************
************************************************
*************************************************
**************************************************
***************************************************
Explanation / Answer
#include #include void main() { clrscr(); int num,op; coutnum; for(int i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.