Lab Sheet 06 - Arrays
Lab Sheet 06 - Arrays
Department of Computing
Batch 02
2. We can modify the program to print the values using a loop as follows.
3. Declare an array of type integer and size 5 named dates. Then assign the
given values and print the Array.
25 30 46 12 58
4. Declare an Array named Marks of the size 6 and assign the given values.
Then print the Summation and the Average of those marks.
6. Write C programs for the following questions by using the numbers given
below.
3 2 4 5 649781
d. Allow user to search a number and display the location within the
array, if the number is found. If not display “Value not found”.