Lab 10
Lab 10
Task 1
Write a C program to read N integers from the keyboard (zero, +ve and ve) into an array and
find
Task 2
Write a program to populate an array of length 30 by randomly generated numbers between 1
and 100. Find the largest and smallest element in the array. Display the populated array, the
largest and the smallest element. Use const keyword to declare the size of the array.
Task 3
Write a C program to cyclically permute the elements of an array A. i.e. the content of A1
becomes that of A2, A2 contains A3 and so on and An contains A1. Sample Output is given
below.
Deliverables
Copy all the programs in one word file and submit the source code on LMS.