Hello, i need some help with C++...I'm attempting to make an 4x4 array. The user inputs the array
"Line 1: " // the the user inputs his 4 numbers for line 1 and so on....
the program then adds the array across on all 4 lines, and twice diagonally. I can only use
#include
using namespace std;
int main (){
//using only types int and double
I want it to be stupid simple, using for loops, and make it as simple as possible. I realize that you must
array[4][4];
int i, j;
for(i=0; i<4; i++){
cout << "enter line 1" << i << endl;
cin >> i; // not sure if this is
for(j=0; j<4; j++) // right but I know
// the for's are right
// or at least on trak
so i know the fors are getting there, but i have no clue how a user can input integers in an array, and i think i know how to add them
[0][0]+[0][1]+[0][2]+[0][3]= result
am i even close? can you give me some code please!!!