0

This Program is wrong or right.

import java.io.*; public class Number { public static void main (String args[])throws IOException { InputStreamReader read = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(read); int a,b,c; System.out.println("enter three numbers"); a=Integer.parseInt(in.readLine()); b=Integer.parseInt(in.readLine()); c=Integer.parseInt(in.readLine()); if(a!=b!=c) { System.out.println("greatest number"); } else { System.out.println("they are equal"); } } }

9th Aug 2020, 9:11 AM
Suraj Mandal
0 ответов