+ 1
How do I perform this code by taking input from user
#include <iostream> using namespace std; int main() { int seats[2][3]={{1,2,3},{4,5,6}}; //cin>>seats[1][2]; cout<<seats[0][1]<<endl; cout<<seats[1][0]; return
5 Respuestas
+ 2
What do you want to do, pls explain.
You can get user input using cin (you have put it in comment)
+ 1
Can you please send an example of taking input from the user by using 2 dimensional arrays
0
I put it in a comment because it was giving the wrong output