Lab April 13

Problem 1

Write a program that reads one integer, n, and prints right triangle of n rows as follows:
*
**
***
.....
***********
Last line has n stars

Problem 2

Write a program that reads one integer, n, and prints right triangle of n rows up - side - down as follows:
First line has n stars
There are n rows in the triangle.
***********
**********
*********
*******
....
**
*

Problem 3

Write a program that reads the 9 distinct integers from 1 to 9 and prints them out in the following way: each integer will be printed the number of times equal to its numeric value. Each such repeated output will be printed on a different line. The nine input integers may be input in any order. You may assume that correct input is always given.
See example below.
Example :
Input: 1 2 3 4 5 6 7 8 9
Output:
1
22
333
4444
55555
666666
7777777
88888888
999999999