#include<stdio.h>
#include<conio.h>
void main()
{
int a[3][2],b[3][2],c[3][2],i,j;
clrscr();
printf(“Enter value for 1 matrix: ”);
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
scanf(“%d”,&a[i][j]);
}
printf(“Enter value for 2 matrix: ”);
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
scanf(“%d”,&b[i][j]);
}
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
c[i][j]=a[i][j]+b[i][j];
}
printf(“Sum of matrix is\n”);
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
{
printf(“%d\t”,c[i][j]);
}
printf(“\n”);
}
getch();
}
#include<conio.h>
void main()
{
int a[3][2],b[3][2],c[3][2],i,j;
clrscr();
printf(“Enter value for 1 matrix: ”);
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
scanf(“%d”,&a[i][j]);
}
printf(“Enter value for 2 matrix: ”);
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
scanf(“%d”,&b[i][j]);
}
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
c[i][j]=a[i][j]+b[i][j];
}
printf(“Sum of matrix is\n”);
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
{
printf(“%d\t”,c[i][j]);
}
printf(“\n”);
}
getch();
}
Python Course in Bangalore | Python Training in Bangalore
ReplyDeleteAWS Training in Bangalore | AWS course in Bangalore
Core Java Training in Bangalore | Core Java Course in Bangalore
Data Science with R Course in Bangalore | Data Science with R Training in Bangalore
Data Science with python Course in Bangalore | Data Science with python Training in Bangalore
Best Software Information Technologies Carrier to reach in an best software training course for freshers and experience to upgrade the next level in an Trending Software Industries Technologies.
ReplyDeletePython Training in Bangalore | Python Course in Bangalore | AWS Training in Bangalore | AWS Course in Bangalore | Cloud Computing Training in Bangalore
Cloud Computing Course in Bangalore
Data Science with R Training in Bangalore | Data Science with R Training Institutes in Bangalore | Data Science with Python Training in Bangalore | Data Science with Python Course in Bangalore