Advertisement
tchenkov

L03u15_ThreeEqualNumbers

Jan 18th, 2017
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /*
  4.  * Created by todor on 18.01.2017 г..
  5.  */
  6. public class u15_ThreeEqualNumbers {
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scan = new Scanner(System.in);
  10.  
  11.         int num1 = Integer.parseInt(scan.nextLine());
  12.         int num2 = Integer.parseInt(scan.nextLine());
  13.         int num3 = Integer.parseInt(scan.nextLine());
  14.  
  15.         if ((num1 == num2) && (num2 == num3)){
  16.             System.out.println("yes");
  17.         }
  18.         else {
  19.             System.out.println("no");
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement