WAP to enter age of a person and check whether he is senior citizen or not
Answers
Answered by
3
Answer:
please mark as a brainlist
Explanation:
import java.until.scanner
package election
Class age{
public static void main(String arcs[]){
Scanner scan=new Scanner (System.in);
System.out.println(“Enter the age of person”);
into user_age=scan.nextInt();
System.out.println(“The age of person is”+user_age);
if(user_age>18)
{
System.out.println(“You are eligible for senior citizen ”);
}
else{
System.out.println(“You are not eligible for senior citizens”);
}
}
}
Attachments:
Answered by
0
Answer:
hhhgfdrttgbbccddrrffgjkopljgfs
Similar questions