Answers

2016-02-25T16:47:36+05:30
Void main()
{
int a[30][30],r,c;
cin>>r,c;
if(r==c)
 {
   sum=0;
   for(int i=0;i<r;i++)
   sum=sum+a[i][i];
   cout<<"sum<<sum;
}
else
 cout<<"invalid";
getch();
}

please rate to 5
0