Vous êtes sur la page 1sur 1

C-Programming Lab

Assignment-3.1

(Integer Array)

1. Write a program to accept 10 numbers and display all the even & odd numbers
separately.
2. Write a program to accept 10 numbers from user and dispaly all the even
numbers which are a odd array index.
3. Write a program to accept 10 numbers and display all the prime numbers.
4. Write a program to accept 10 numbers from user and count the +ve and -ve
numbers in the the array.
5. Write a program to accept 10 numbers and replace all the event numbers by 0
and odd numbers by1, and display the resultant array.
6. Write a program to accept 10 numbers and copy all the positive numbers into
one array and negative numbers into another array. Display all the three array.
7. Write a program to accept 10 numbers and arrange them in ascending order.
8. Write a program to accept 10 numbers and arrange them in such a way that all
the positive number comes first then all the negative number. Display the
resultant array.
9. Write a program to accept a 3x3 matrix and display
a. Transpose
b. Inverse
c. Check whether it is an sparse matrix or not.
10. Write a program to accept two 3x3 matrix and display there
a. Addition
b. Subtraction
c. Multiplication

NOTE : This document have been sent to your google Apps Id, you can access
from there also.

Vous aimerez peut-être aussi