Please give me the code as well as the algorithm for the following 3 questions,
1) To generate the following pattern using 'for' loop.
1 2 3 4
1 2 3
1 2
1
1 2
1 2 3
1 2 3 4
2)Write a program to take N array inputs and sort them in ascending order.
3)Write a program to perform the following matrix operations,
a).Check the given matrix for symmetric.
b).Find the sum of diagonal(major or minor axis).
PLEASEE HELP ME!!!