Home » » If else if with input in Java Program

If else if with input in Java Program

If else if with input in Java Program

If else if with input in Java Program

If else if with input

import java.io.*;
class arun
{
public Static void main(String args[]) throwss IOException
{
DataInputStream in = new DataInputStream(System.in);
{
int a,b,c;
System.out.println("Enter the value of a,b,c is:");
a=Integer.parseInt(in.readLine());
b=Integer.parseInt(in.readLine());
c=Integer.parseInt(in.readLine());
if((a>b)&&(a>c))
System.out.println("a is greater");
else
if((b>a)&&(b>c))
System.out.println("b is greater");
else
System.out.println("c is greater");
}
}
}

0 coment�rios:

Post a Comment

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