Computer Science, asked by sovannayak, 1 year ago

Answer this question

Attachments:

Answers

Answered by helpingbuddy40
3
public class sum
{public static void main(String args[])throwsIOException
{DataInputStream in=new DataInput stream(System.in);
System.out.println("enter three numbers");
double a=Double.ParseDouble(System.in);
double b=Double.ParseDouble(System.in);
double c=Double.ParseDouble(System.in);
if(a>b&&a>c)
System.out.println(a+"is the greatest number");
else if(b>c&&b>a)
System.out.println(b+"is the greatest");
else
System.out.println(c+"is the greatest");
}}
Similar questions