PROGRAM TO FIND SUBTRACTION OF TWO MATRICES

/*PROGRAM TO FIND SUBTRACTION OF TWO MATRICES*/ #include<stdio.h> #include<conio.h> void main() { int m,n,p,q,i,j,a[10][10],b[10][10],c[10][10]; clrscr(); printf(“Enter the order of first matrix: “); scanf(“%d%d”,&m,&n); printf(“Enter the order of second matrix: “); …

PROGRAM TO FIND SUM OF TWO MATRICES

/*PROGRAM TO FIND SUM OF TWO MATRICES*/ #include<stdio.h> #include<conio.h> void main() { int m,n,p,q,i,j,a[10][10],b[10][10],c[10][10]; clrscr(); printf(“Enter the order of first matrix: “); scanf(“%d%d”,&m,&n); printf(“Enter the order of second matrix: “); …

PROGRAM TO ADD ALL THE ELEMENTS OF A MATRIX

/*PROGRAM TO ADD ALL THE ELEMENTS OF A MATRIX*/ #include<stdio.h> #include<conio.h> void main() { int i,j,m,n,a[8][8],sum=0; clrscr(); printf(“Enter the order of the matrix: “); scanf(“%d%d”,&m,&n); printf(“\nEnter %d elements in the …

PROGRAM TO DISPLAY A MATRIX

/*PROGRAM TO DISPLAY A MATRIX*/ #include<stdio.h> #include<conio.h> void main() { int i,j,m,n,a[8][8]; clrscr(); printf(“Enter the order of the matrix: “); scanf(“%d%d”,&m,&n); printf(“\nEnter %d elements in the matrix:\n”,m*n); for(i=0;i<m;i++) { for(j=0;j<n;j++) …

PROGRAM TO COUNT NUMBER OF VOWELS IN A GIVEN ARRAY

/*PROGRAM TO COUNT NUMBER OF VOWELS IN A GIVEN ARRAY*/ #include<stdio.h> #include<conio.h> void main() { int i,count=0; char a[10]; clrscr(); printf(“Enter any ten alphabets in the array:\n”); for(i=0;i<10;i++) scanf(“\n%c”,&a[i]); printf(“Vowels …

SEARCH MAXIMUM AND MINIMUM ELEMENT IN AN INTEGER ARRAY

/*PROGRAM TO SEARCH MAXIMUM AND MINIMUM ELEMENT IN AN INTEGER ARRAY*/ #include<stdio.h> #include<conio.h> void main() { int i,j,s,l,a[10],loc=0; clrscr(); printf(“Enter any ten elements in the array:\n”); for(i=0;i<10;i++) scanf(“%d”,&a[i]); printf(“Elements in …

PROGRAM TO COPY AN ARRAY INTO ANOTHER ARRAY

/*PROGRAM TO COPY AN ARRAY INTO ANOTHER ARRAY*/ #include<stdio.h> #include<conio.h> void main() { int i,a[5],b[5]; clrscr(); printf(“Enter any five elements in the array:\n”); for(i=0;i<5;i++) scanf(“%d”,&a[i]); printf(“Elements of original array are:\n” …

PROGRAM TO DISPLAY SUM OF SERIES

/*PRORAM TO DISPLAY SUM OF SERIES*/ #include<stdio.h> #include<conio.h> void main() { int n,sum=0,i,j,temp=1; clrscr(); printf(“Enter the range of series: “); scanf(“%d”,&n); if(n<1) printf(“Range must be greater than zero”); else { …

PROGRAM TO DISPLAY A SERIES AND FIND ITS SUM

/*PROGRAM TO DISPLAY A SERIES AND FIND ITS SUM*/ #include<stdio.h> #include<conio.h> void main() { int i,j,n,sum=0; clrscr(); printf(“Enter the limit of series: “); scanf(“%d”,&n); printf(“Series and its sum is: \n”); …