Write a java program for age calculator.
Answers
Answered by
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");
}
}
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