Popular posts from this blog
c program to multiplication of two 3*3 matrices
/* c program to multiplication of two 3*3 matrices*/ #include<stdio.h> #include<conio.h> void main() { int m1[3][3],m2[3][3],prod[3][3]; int i,j,k; clrscr(); printf("enter the first matrix : \n"); for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&m1[i][j]); printf("enter 2nd matrix : \n"); for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&m2[i][j]); /* multiplication of matrix */ for(i=0;i<3;i++) for(j=0;j<3;j++) ...
to arrange number descending using bubble sort technique
/*to arrange number descending using bubble sort technique*/ #include<stdio.h> #include<conio.h> void main() { int num[10]; int loop,i; int last=10; int exchange; int temp; clrscr(); printf("enter the 10 number\n"); for(i=0;i<10;++i) scanf("%d",&num[i]); for(loop=0;loop<9;++loop) { exchange=0; for(i=0;i<(last-1);i++) if(num[i]>num[i+1]) { temp=num[i]; num[i]=num[i+1]; ...
Comments