0
Hello I am new in this app plz anyone tell where to enter a number in this program
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner =new Scanner(System.in); System.out.println("Enter any number:"); int num=scanner.nextInt(); scanner.close(); if(num%2==0){ System.out.println(num+"number given by user is an even number"); }else{ System.out.println(num+"number given by user is an odd number"); } } }
2 Antworten
+ 6
You need to provide your input on that alert(input) box and hit the submit.
+ 2
Thanx