For ( (I 0 I 2 I++) ) Do Read A ($i) Done For ( (I 0 I 2 I++) ) Do Echo " "$ (A ($i) ) Done Output:-Ubuntu@ubuntu: $ Bash CB - SH 1 3
For ( (I 0 I 2 I++) ) Do Read A ($i) Done For ( (I 0 I 2 I++) ) Do Echo " "$ (A ($i) ) Done Output:-Ubuntu@ubuntu: $ Bash CB - SH 1 3
1
3
Output:- 1
5
2
4
3
Descending
5
4
3
2
1
Ascending
1
2
3
4
5
Output:- 1
5
2
4
3
echo
3
4
2
5
1
U.V. Patel College of Engineering
B. Tech Computer Science and
Engineering
CLASS : CBA
ENROLMENT NO : 16012101038
BATCH : CSE - 22
Practical 5 :
U.V. Patel College of Engineering
B. Tech Computer Science and
Engineering
CLASS : CBA
ENROLMENT NO : 16012101038
BATCH : CSE - 22
Practical 6 :