Write a java program to enter an age , if age is greater than 12 , display “ Qualified for vaccination “ if less than 12 , display “ Not qualified for vaccination “
Answers
Answered by
3
import java.util.*;
public class V
{
public static void main (String args [])
{
Scanner sc = new Scanner (System.in);
System.out.println("Please Enter Your Age");
int age = sc.nextInt();
if ( age >= 12 )
{
System.out.println("Qualified for vaccination");
}
else
{
System.out.println("Not qualified for vaccination");
}
sc.close();
}
}
Similar questions