Diagonal of a matrix (2 dimension array) with c++
#include<iostream.h> #include<conio.h> void main() { cout<<"========================================================\n"; cout<<" Tugas Algoritma Pemrograman Semester 2 \n"; cout<<" Pencarian diagonal pada matrix \n"; cout<<"========================================================\n\n"; cout<<"Tekan sembarang tombol untuk melanjutkan..."; getch(); awal: clrscr(); int i,j; int dimat; char lagi; //input data cout<<"Masukkan dimensi matrix : "; cin>>dimat; if ((dimat<2)||(dimat>9)) { ...