Sie sind auf Seite 1von 1

#include<stdio.

h>
#include<conio.h>
void add(int a[10][10],int b[10][10],int c[10][10],int w,int x,int y,int z);
void main()
{
int w,ch,x,i,j,a[10][10],b[10][10],c[10][10],y,z;
clrscr();
printf("enter the rows of 1st matrix");
scanf("%d",&w);
printf("enter the columns of 1st matrix");
scanf("%d",&x);
printf("enter the roes of 2nd matrix");
scanf("%d",&y);
printf("enter the rows of 1st matrix");
scanf("%d",&z);
printf("\nenter elements of 1st matrix:");
for(i=0;i<w;i++)
{
for(j=0;j<x;j++)
scanf("%d",&a[i][j]);
}
printf("\nenter elements of second matrix:");
for(i=0;i<y;i++)
{
for(j=0;j<z;j++)
scanf("%d",&b[i][j]);
}
do{
//menu
clrscr();
printf("\n\tMENU::\n\t 1:Addition\n\t 2:Multiplication\n\t 3.
Transpose\n\t 4.Saddle point\n");
printf("Choice:");
scanf("%d",&ch);
getch();
}

Das könnte Ihnen auch gefallen