The document contains a C program that initializes two 2D arrays A and B with the sum of their indices. It prompts the user to input the number of rows and columns, then displays the contents of both arrays and their sum in a third array C. The program outputs the values of A, B, and C in a formatted manner.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views1 page
Add Matrix
The document contains a C program that initializes two 2D arrays A and B with the sum of their indices. It prompts the user to input the number of rows and columns, then displays the contents of both arrays and their sum in a third array C. The program outputs the values of A, B, and C in a formatted manner.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
#include<stdio.
h> int main(){ int A[30][30], B[30][30], C[30][30], i, j, r, c; printf("please enter the no. of rows:"); scanf("%d", &r); printf("please enter the no. of column:"); scanf("%d", &c);