+ 1
Why the Scanner Class is not Working in SoloLearn..
/* program to check Even or Odd number entered by User. */ import java.util.Scanner; class EvenOrOdd { public static void main (String args[]) { Scanner sc = new Scanner (System.in); System.out.println ("Enter No. to check Even or Odd "); int num = sc.nextInt(); if ( num % 2 == 0) { System.out.println (" Even Number"); } else { System.out.println (" Odd Number"); } } }
5 ответов
+ 2
import java.util.Scanner;
You missed ;
+ 2
It works fine.
Likely an issue with your internet connection.
+ 1
Still not working..
the code working good in laptop, but not in Solo Learn
+ 1
nope.. internet connection is good .. ..
i think ther is problem in the version of app somehow..
i world like to report the problem, lets see what solLearn respond.