Array problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Array problem

See commented lines in code https://code.sololearn.com/cz5WQYa29Q0K/?ref=app

1st Jun 2022, 12:58 PM
Chahit Bhardwaj
Chahit Bhardwaj - avatar
2 Answers
+ 1
2nd row index value is 1 , not 2. so use for(int i=1; i<2; i++){ for(int j=0; j<3; j++) cin>>arrr[i][j]; }
1st Jun 2022, 2:11 PM
Jayakrishna 🇮🇳
+ 1
Thank I got it Jayakrishna🇮🇳
2nd Jun 2022, 1:58 AM
Chahit Bhardwaj
Chahit Bhardwaj - avatar