answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int i,a[3][3]={1,2,3,4,5,6,7,8,9},j,s=0,m,n;

clrscr();

/*for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

printf("\na[%d][%d]= ",i,j);

scanf("%d",&a[i][j]);

}

}*/

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

{

printf("%d",a[i][j]);

}

printf("\n\n");

}

for(i=0;i<3;i++)

{

for(j=0;j<3;j++)

s=s+a[i][j];

printf("\n Sum of %d`th row=%d",i+1,s);

s=0;

}

{

int i,j,s=0;

for(j=0;j<3;j++)

{

for(i=0;i<3;i++)

s=s+a[i][j];

printf("\n\t\t Sum of %d`th column=%d",j+1,s);

s=0 ;

}

}

getch();

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Find sum of elements row wise and columm wise?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

Why do the rows double in the pascal's triangle when you add them up?

Each element of a row of pascal's triangle is the sum of the two elements above it. Therefore when you some the elements of a row, each of the elements of the row above are being summed twice. Thus the sum of each row of pascal's triangle is twice the sum of the previous row.


How to construct a matrix with 23 elements?

It will either be a 1*23 row matrix or a 23*1 column matrix.


What is the determinant of a matrix?

A determinant is defined for square matrices only.To find the determinant of the matrix you need to:find all n-tuples of elements of the matrix such that each row and each column of the matrix is represented.calculate the product of the elements.calculate the sign for that term. To see how this is done, see below.calculate the sum of the signed products: that is the determinant.To calculate the sign for the product of the n-tuple, arrange the elements in row order. Swap the elements, two at a time, to get them in column order. If the number of swaps required is even then the product is assigned a positive sign, and if odd then a negative sign.


How do you find the LCM of 6 and 9?

To find the LCM: write in 2 rows multiples of 6 (top row) and multiples of 9 (bottom row) and find the same number in both rows. 18 is in both rows, so 18 is the LCM of 6 and 9.6.12.18.249.18.27.36


Can you find a pattern to connect the row with it's sum Row- 0 1 2 3 4 5 6 Sum- 1 2 4 8 16 32 64?

The sum = 2r : where r is the row number.

Related questions

How do you find the largest and smallest number row wise and column wise?

Use the function MAX to find the largest value. Use the function MIN to find the smallest value. If you want to find the value in a row, use the range of the cells in the row; for column, use the range of cells in the column. =MAX(A1:A12) will find the largest value in column A (from row 1 through 12). =MIN(A1:M1) will find the smallest value in row 1 (from column A through M).


Elements of the same row across?

the period


What is an elements period?

A period is a row of elements


What are Elements in the first row of the rare earth elements of the periodic table!?

Elements in the first row of the rare earth elements of the Periodic Table are called LANTHANIDES.


An element in the second row of the rare earth elements in the periodic table are?

litium, and elements in the 2nd period (row) are pretty common


The row of elements going left to right on the periodic table is called?

This row of chemical elements is a "period".


A row of elements?

The answer to that is column.


What is an element in its row in the periodic table?

An elements period is its row in the periodic table.


Elements in the first row of the rare elements of the periodic?

the lanthanides


What is an row using chemistry terms?

A row of elements is known as a "period".


The elements in a row of the periodic table?

The vertical "rows" are called Columns, and the horizontal "rows" are called Periods


Why do the rows double in the pascal's triangle when you add them up?

Each element of a row of pascal's triangle is the sum of the two elements above it. Therefore when you some the elements of a row, each of the elements of the row above are being summed twice. Thus the sum of each row of pascal's triangle is twice the sum of the previous row.