Computer Science, asked by suckrmonk, 1 year ago

Write a java program for age calculator.

Answers

Answered by aditya2543
0
import java.util.*;
class age
{
public static void main ()
{
int a,b,c;
c=a/2;
if (a>18)
System.out.println ("the person is eligible for voting");
else if
System.out.println ("the person is not eligible for voting");
}
}
Similar questions