+ 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

31st Dec 2023, 5:17 PM
Haram Abbas Lar
Haram Abbas Lar - avatar
4 Answers
31st Dec 2023, 5:46 PM
šŸ‡®šŸ‡± Radin Masiha šŸ‡®šŸ‡±
šŸ‡®šŸ‡± Radin Masiha šŸ‡®šŸ‡± - avatar
+ 2
What do you want to do, pls explain. You can get user input using cin (you have put it in comment)
31st Dec 2023, 5:34 PM
šŸ‡®šŸ‡± Radin Masiha šŸ‡®šŸ‡±
šŸ‡®šŸ‡± Radin Masiha šŸ‡®šŸ‡± - avatar
+ 1
Can you please send an example of taking input from the user by using 2 dimensional arrays
31st Dec 2023, 5:36 PM
Haram Abbas Lar
Haram Abbas Lar - avatar
0
I put it in a comment because it was giving the wrong output
31st Dec 2023, 5:38 PM
Haram Abbas Lar
Haram Abbas Lar - avatar