0% found this document useful (0 votes)
50 views1 page

C-Programming Lab Assignment-3.1: (Integer Array)

This document outlines 10 programming assignments involving integer arrays and matrices. The assignments include separating even and odd numbers in an array, finding even numbers at odd indices, identifying prime numbers, counting positive and negative numbers, replacing even and odd numbers with 0s and 1s, copying positive and negative numbers to separate arrays, sorting an array in ascending order, sorting an array so positives precede negatives, taking the transpose, inverse, and checking for sparsity of a 3x3 matrix, and adding, subtracting, and multiplying two 3x3 matrices. Students are instructed to access this document through their Google Apps ID for the C programming lab assignments.

Uploaded by

Sourabh Tiwari
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)
50 views1 page

C-Programming Lab Assignment-3.1: (Integer Array)

This document outlines 10 programming assignments involving integer arrays and matrices. The assignments include separating even and odd numbers in an array, finding even numbers at odd indices, identifying prime numbers, counting positive and negative numbers, replacing even and odd numbers with 0s and 1s, copying positive and negative numbers to separate arrays, sorting an array in ascending order, sorting an array so positives precede negatives, taking the transpose, inverse, and checking for sparsity of a 3x3 matrix, and adding, subtracting, and multiplying two 3x3 matrices. Students are instructed to access this document through their Google Apps ID for the C programming lab assignments.

Uploaded by

Sourabh Tiwari
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

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.

You might also like