Hints
You may nest two inner loops, one to print spaces and one to print numbers (0-9), inside an outer loop that steps down the screen from line to line.
ask user to enter any number from 0-9. if he enter 3 out put will be.
*****1
****2 2
***3 3 3
**4 4 4 4
In the above sample there will no'*' in real and it will not appear in screan . it will write only for submitting sample.if I do not write * prew of sample is not correct in appearence.
Please submit complete solution of the question.
2006-10-26
02:53:51
·
2 answers
·
asked by
Muhammad A
1
in
Education & Reference
➔ Higher Education (University +)