Advertisement
borkins

15. 3 Equal Numbers

Mar 24th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. /**
  2.  * Project: Simple_Conditions - created by borkins on 2017-03-25.
  3.  */
  4.  
  5. import java.util.Scanner;
  6.  
  7. public class _15_ThreeEqualNumbers
  8. {
  9.     public static void main(String[] args)
  10.     {
  11.         Scanner console = new Scanner(System.in);
  12.        
  13.         int a = Integer.parseInt(console.nextLine());
  14.         int b = Integer.parseInt(console.nextLine());
  15.         int c = Integer.parseInt(console.nextLine());
  16.        
  17.         System.out.println((a == b && a == c) ? "yes" : "no");
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement