VINSTAR
Not fresh
i need c program for the following questions
Generate the following pattern using nested loops:
1
23
345
4567
56789
678901
7890123
89012345
901234567
Generate the following pyramid of digits using nested loops
. 1
.
. 2 3 2
.
. 3 4 5 4 3
.
. 4 5 6 7 6 5 4
.
. 5 6 7 8 9 8 7 6 5
.
. 6 7 8 9 0 1 0 9 8 7 6
.
. 7 8 9 0 1 2 3 2 1 0 9 8 7
.
. 8 9 0 1 2 3 4 5 4 3 2 1 0 9 8
.
. 9 0 1 2 3 4 5 6 7 6 5 4 3 2 1 0 9
.
. 0 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1 0
Generate the following pattern using nested loops:
1
23
345
4567
56789
678901
7890123
89012345
901234567
Generate the following pyramid of digits using nested loops
. 1
.
. 2 3 2
.
. 3 4 5 4 3
.
. 4 5 6 7 6 5 4
.
. 5 6 7 8 9 8 7 6 5
.
. 6 7 8 9 0 1 0 9 8 7 6
.
. 7 8 9 0 1 2 3 2 1 0 9 8 7
.
. 8 9 0 1 2 3 4 5 4 3 2 1 0 9 8
.
. 9 0 1 2 3 4 5 6 7 6 5 4 3 2 1 0 9
.
. 0 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 1 0