0
How the output get in the program to display a triangle of stars
3 Respostas
+ 2
Easy task. Make a function such as printStar and declare a variable i as argument. Make a for loop inside the function with initial value of int j and j greater than i. Print "*".
In the main function, make a for loop for printing the printStar function again and again.
See this code, I have made.
https://code.sololearn.com/cmBD6PvH52G0/?ref=app
+ 2
I want to know the steps to get that output
+ 1
Beenu Thomas
I have edited the code with comments. You can see it now.