+ 1

Please, can anyone help me with this task?

Create a program that calculates the number of odd numbers of random numbers modulo 100. The characteristic must be calculated 10 times in a row and each of the results should be output https://code.sololearn.com/c5p55T961tK8/?ref=app

19th Oct 2019, 1:58 PM
Rainbow Pie
1 Réponse
+ 2
Nice work, you almost got it. All you have to do is add a counter to be incremented every time you encounter an odd number. I did this separately for each sample, assuming that's what you want. https://code.sololearn.com/cd7PK2jAC63N/?ref=app
19th Oct 2019, 2:11 PM
Hatsy Rei
Hatsy Rei - avatar