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"); } } }

18th Sep 2021, 8:34 AM
Shashank
Shashank - avatar
2 Answers
+ 6
You need to provide your input on that alert(input) box and hit the submit.
18th Sep 2021, 8:38 AM
Simba
Simba - avatar
+ 2
Thanx
18th Sep 2021, 10:54 AM
Shashank
Shashank - avatar