answersLogoWhite

0

#include
#include
void main()
{ int a[10][10],b[10][10],c[10][10],i,j.r,c;
printf("\nNo. of Rows?");
scanf("%d",&r);
printf("\nNo. of Cols?");
scanf("%d",&c);
printf("\nEnter elements for 1st array:");
for(i=0;ifor(j=0;jscanf("%d",&a[i][j]);
printf("\nEnter elements for 2nd array:");
for(i=0;ifor(j=0;jscanf("%d",&b[i][j]);
for(i=0;ifor(j=0;jc[i][j]=a[i][j]+b[i][j];
printf("\nDisplaying the result:\n");
for(i=0;i{ for(j=0;jprintf("%d",c[i][j]);
}
getch();
}
If the ans helps you,plz increase the trust point.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you write a C Program to fill up an Integer Array?

Reference:cprogramming-bd.com/c_page1.aspx# array programming


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Write a c program for matrix addition using function?

#include<


How do you write a program in C to find and display the sum of each row and column of a 2 dimensional array of type float?

array type


How can write a c program to store students record in a file?

Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,


Write c program to find median?

If you are using an array : sort using qsort() then take middle element.


Write a c program to find the maximum value of 25 element in an array?

int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }


C program for storage representation of 2-D array?

Wright a 'C' program for storage representation of 2-D array.


You want to write a simple without using pointer or array c program which will print greatest number when you give 20 number?

i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?


Write a c program to find the maximum of two numbers and print out with its position?

maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know


Would you Write c plus plus program using array for Fibonacci number?

You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....


How a write a program for seating arrangement in c?

To write a program for a seating arrangement in C, you can use a two-dimensional array to represent the seats. First, define the size of the array based on the number of rows and columns. Then, use nested loops to fill the array with seat identifiers (e.g., 'A', 'B', 'C', etc.) and allow user input to assign or rearrange seats. Finally, display the seating arrangement by iterating through the array and printing each seat's status.