#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a[3][3],i,j,b;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
cout<<"Enter a number:";
cin>>a[i][j];
}
}
for(i=0;i<3;i++)
{
b=0;
for(j=0;j<3;j++)
b=a[i][j]+b;
cout<<"The sum of elements in "<<i+1<<" row is "<<b;
cout<<"\n";
}
getch();
}