Помогите с задачкой по С++,нужно вывести на экран побочную диагональ квадратной матрицы.. . вот что уже есть...
#include "stdafx.h"
#include
#include
#include
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
setlocale(0, "Russian");
srand((unsigned)time(NULL));
int a[500][500];
int n,m;
cout<<"Введите количество строк ";
cin>>n;
cout<<"Введите количество столбцов ";
cin>>m;
cout<
for(int j=0; j
a[i][j]=rand()%30+10;
cout<
}
cout<