programs collection ioe computer programming ///addition of two matrics
addition of matrics
#include <conio.h>
#include <stdio.h>
void main()
{
int m, n, c, d, first[10][10], second[10][10], sum[10][10];
clrscr();
printf("Enter the number of rows and columns of matrixn");
scanf("%d%d", &m, &n);
printf("Enter the elements of first matrixn");
for ( c = 0 ; c < m ; c++ )
for ( d = 0 ; d < n ; d++ )
scanf("%d", &first[c][d]);
printf("Enter the elements of second matrixn");
for ( c = 0 ; c < m ; c++ )
for ( d = 0 ; d < n ; d++ )
scanf("%d", &second[c][d]);
for ( c = 0 ; c < m ; c++ )
for ( d = 0 ; d < n ; d++ )
sum[c][d] = first[c][d] + second[c][d];
printf("Sum of entered matrices:-n");
for ( c = 0 ; c < m ; c++ )
{
for ( d = 0 ; d < n ; d++ )
printf("%dt", sum[c][d]);
printf("n");
}
getch();
}
Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_291b0_111.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/enginee2/oldEh/wp-includes/wp-db.php on line 2162
Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_291b0_111.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/enginee2/oldEh/wp-includes/wp-db.php on line 2162
Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_291b0_111.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/enginee2/oldEh/wp-includes/wp-db.php on line 2162
Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_291b0_111.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/enginee2/oldEh/wp-includes/wp-db.php on line 2162
