The blog is use for self study/ learning purpose. Good Luck !! Jay Hind !! PSPD !!!
Array Programs
Sr. No.
Pattern
1
Define array. Enter user define value and print it.
2
Define array and print sum of given numbers in array.
3
Define array and print sum of odd numbers from given array.
4
Define array and print sum of odd numbers and even numbers from given array.
5
Define array and print maximum value from an array.
6
Define array and print minimum value from an array.
7
Define two-dimensional (2-D) array.
8
Matrics addition.
9
Multi-dimensional array.
10
Find maximum value from 2-D array.
Click on Pattern for Code
*
**
***
****
*****
***************
11111 2222 333 44 5
12345
2345
345
45
55555
4444
333
22
13
135
1357
13579
5 4
5 4 3
5 4 3 2
5 4 3 2 1
2 1
3 2 1
4 3 2 1
4 5
3 4 5
2 3 4 5
1 2 3 4 5
11
1 2
1 2 3
1 2 3 4
12
14
4 4
3 3 3
2 2 2 2
1 1 1 1 1
15
2 2
4 4 4 4
5 5 5 5 5
16
3 1
5 3 1
7 5 3 1
9 7 5 3 1
17
18
1 3 5 7 9
1 3 5 7
1 3 5
1 3
19
20
21
23
1 5
1 5 10
1 5 10 15
1 5 10 15 20
24
25
20 15 10 5 1
15 10 5 1
10 5 1
5 1
26
2 3
4 5 6 7
5 6 7 8 9
27
4 5 6
7 8 9 10
11 12 13 14 15
28
0 1
1 0 1
0 1 0 1
1 0 1 0 1
29
1 0
1 0 1 0
30
121
12321
1234321
123454321
31
1 131 13531 1357531 135797531 1357531 13531 131 1
32
101
10101
1010101
101010101
33
222
33333
4444444
555555555
34
*******
*********