السلام عليكم
لدي سؤال ارجو الافادة عن array 2-d
Write a program that read 14 values of double 2-D array arr from the keyboard. Then print out the
1. The elements of one diagonal on green
2. The above triangle blue
3. The below triangle red
#include <iostream>
using namespace std;
int main()
{
double color [4][4];
for(int coulm=0; coulm <4;coulm++){
color[0][coulm];
cout<<color[0][coulm];
}
system("pause");
return 0;
}