diff --git a/program to display sum of digonals b/program to display sum of digonals new file mode 100644 index 0000000..970bab7 --- /dev/null +++ b/program to display sum of digonals @@ -0,0 +1,29 @@ +#include + +using namespace std; + +int main() +{ + int a[5][5],d1sum=0,d2sum=0,m,i,j; + cout<<"Enter size of the square matrix(max 5):"; + cin>>m; + cout<<"\nEnter the Matrix row wise:\n"; + + for(i=0;i>a[i][j]; + + for(i=0;i