0
how to make my scanner work😆
https://sololearn.com/compiler-playground/cb3o89iWA69i/?ref=app
3 ответов
+ 3
remove line 8
+ 2
It works perfectly no need to do any changes
+ 2
eli change line 9 to:
if (num%2 == 0) {
this is for odd and even
and yes
if (num>0) {
this is for positive and negative numbers
your code works as intended