+ 1
Jagged arrays and code coach
Hi, i have this practice task: "Write a program to take the numbers of each day's winners as input and output them." https://code.sololearn.com/c6q731gg9H51/?ref=app And this code pass 4/5 tests, but 5 test is hidden, so i can't see problem with my solution. So maybe someone can help?
2 Respuestas
0
Which code coach challenge is this? Since you say it passes 4/5 tests and after looking at your code I'd guess it's simply a typo.
Also your handling of wrong inputs seems odd. Is it really needed? I guess not, but anyway. Negative values and also 0 still lead to an index out of range Exception. Fix: if(day_Winner<1) day_Winner=1;
0
This is Jagged Arrays challenge. I'm begginer, so this can be odd things in my code. Thanks