0

Hello :)

How can i start i have that question Read integers until 0 has been read five times, print how many numbers were read

1st Jul 2020, 5:54 PM
Benjamín Ramires
Benjamín Ramires - avatar
6 ответов
+ 2
Show your attempt! Hint: counter is set to 0 use while loop, take input in every loop. If the input is 0 increase the counter by 1. And the while loop condition can be 'while (counter < 5)'. And pls use relevant heading
1st Jul 2020, 5:58 PM
Namit Jain
Namit Jain - avatar
+ 1
thank you very much: 3
1st Jul 2020, 6:02 PM
Benjamín Ramires
Benjamín Ramires - avatar
+ 1
Benjamín Ramires Ok wait! I am sending you the solution
1st Jul 2020, 6:25 PM
Namit Jain
Namit Jain - avatar
1st Jul 2020, 6:24 PM
Benjamín Ramires
Benjamín Ramires - avatar
0
I don't understand how I can repeat 5 times 0 :(
1st Jul 2020, 6:24 PM
Benjamín Ramires
Benjamín Ramires - avatar
0
I interpreted your question this way! Pls check is this what you wanted? https://code.sololearn.com/c8xVhcKTn1md/?ref=app
1st Jul 2020, 6:30 PM
Namit Jain
Namit Jain - avatar