Use the keyboard to enter three integers. Display the number of positive numbers in the original set.
Here are some examples:
a) if you enter the numbers
-4
6
6
then we display
2
b) if you enter the numbers
-6
-6
-3
then we display
0
c) if you enter the numbers
0
1
2
then we display
2
Positive number
- 3
Locked
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
yushil Java Developer
1 June, 06:02
Alhough other ways of solutions gives exactly the right answer, it is not accepted by Codegym.
It push us to solve the question in its own way. Is that also the teaching method.
0
Roman
1 June, 07:22
"Alhough other ways of solutions gives exactly the right answer, it is not accepted by Codegym."
If you send me an example of such a solution, I can check what the problem is
0
Tasmoda Android Developer
16 March, 22:05
After a good 6 hours and 10 verification attempts, I got it right! ----Let's go soldiers!💪
+1
Joshua Zellner
7 January, 20:44
these are starting to get tough 💪
+1
Siyanda Dlamini
10 March, 14:01
Well I guess that is the purpose of gym, it gradually gets harder.
0