0

Pls help me this Question

Using loops make a mirror right angle (in the opposite direction)triangle with asterisks (*).

11th Dec 2018, 7:37 AM
Kingsley Mbah
Kingsley Mbah - avatar
2 Antworten
+ 17
Hy Kingsley Mbah Please show us your attempt through a code , so that we can help you at place where U are getting some doubt. //also make sure your question is clear by giving sample input & output 👍
11th Dec 2018, 8:00 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
Like this ? * ** *** *** ** * First analyze each lines, how many * should be printed in the line. * 1 ** 2 *** 3 *** 3 ** 2 * 1 After that find the pattern of those numbers 1 2 3 -> that means +1 on each lines 3 2 1 -> but after reach the maximum, it change to -1 Last step. Write a code based on all of this analysis. If you really has no idea what should you write first. Try to start with pseduo code, or a flow chart, or a simple descriptive steps explain how the program should run from start to end. all of this will really help you at coding phrase
11th Dec 2018, 9:18 AM
Taste
Taste - avatar