Home » » If else in Java Program

If else in Java Program

If else in Java Program

If else in Java Program

If else

import java.io.*;
class arun
{
public Static void main(String args[]) throws IOException
{
DataInputStream in = new DataInputStream(System.in);
{
int a;
System.out.println("Enter the value of a is:");
a=Integer.parseInt(in.readLine());
if(a>=18)
System.out.println("I am eligible for vote");
else
System.out.println("I am not eligible for vote");
}
}
}


0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g