Name: Sorn Davin
ID : e20221238
TP09-Using array (Part2)
Problem1: Write a program in C to find the second largest number in an array.
Code:
Result:
Problem2: Write a C program to input 4 numbers and store in the two 2x2 matrices, say m1 and m2.
Each matrix is a 2D array of 2 rows and 2 columns. int m1[2][2], m2[2][2]; a) Find the matrix m3 which
is the summation of these two matrices. (m3 = m1+m2) b) Find and display the max and min numbers in
m3.
Code:
Result:
Problem3: Write a program in C to delete an element at a desired position from an array.
Code:
Result:
Problem4: Create a student management system program in C that allows users to perform the following
actions:
Code:
Result: