0% found this document useful (0 votes)
150 views

Question Bank CPR Practical No.7

The document provides instructions for 6 programming exercises using single dimensional arrays in C language. Students are asked to: 1) Enter ages of 10 men and find the eldest, 2) Accept 10 values, calculate average, and check if any values equal the average, 3) Copy contents of one array into another of size 7, 4) Count and display even numbers from 10 input values, 5) Determine common numbers between two arrays of size 5, and 6) Accept 15 float numbers and display odd-indexed values in reverse order. The exercises are assigned as part of a practical for a Programming in C class.

Uploaded by

api-3728136
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
150 views

Question Bank CPR Practical No.7

The document provides instructions for 6 programming exercises using single dimensional arrays in C language. Students are asked to: 1) Enter ages of 10 men and find the eldest, 2) Accept 10 values, calculate average, and check if any values equal the average, 3) Copy contents of one array into another of size 7, 4) Count and display even numbers from 10 input values, 5) Determine common numbers between two arrays of size 5, and 6) Accept 15 float numbers and display odd-indexed values in reverse order. The exercises are assigned as part of a practical for a Programming in C class.

Uploaded by

api-3728136
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

K. K. Wagh Polytechnic, Nashik – 3.

Subject: Programming in ‘C’ Sub Code: 9017


Class: FYIF (IF/2/C)
Academic Year: 2008 – 2009

Practical No. 7
Understand single dimensional array:

1. Enter ages of ten different men from user and find out who is the eldest in all?
2. Accept 10 different values from keyboard; determine their average and find out is
there any number in the array whose value equals to average.
3. Write a program to copy contents of one array into another array. Accept size of both
arrays as 7.
4. Input 10 different numbers from user. Count and display total even numbers from it.
5. Accept values of two different arrays (size 5) from user and determine how many
numbers they are having common.
6. Write a program to accept 15 different float number from user and display those
numbers which are positioned on odd index positions in reverse order. For example,
you have to print the numbers on array[13], array[11], array[9], array[7]………so on.

Kute T. B.
(Subject Teacher)

CPR – Practical No. 7

You might also like