package com.kapish;
import java.util.Scanner;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
// WAP to find whether a given number is prime or not.
Scanner sc= new Scanner(System.in); //System.in is a standard input stream.
System.out.print("Enter first number- ");
int eno = sc.nextInt();
System.out.println(eno);
if (eno%2==0){
System.out.println("even");
} else{
System.out.println("odd");
}
}
}
No comments:
Post a Comment