YavorGrancharov

ThreeEqualNumbers

Dec 23rd, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class ThreeEqualNumbers {
  3.     public static void main(String[] args) {
  4.         Scanner console = new Scanner(System.in);
  5.         double a = Double.parseDouble(console.nextLine());
  6.         double b = Double.parseDouble(console.nextLine());
  7.         double c = Double.parseDouble(console.nextLine());
  8.  
  9.         if (a == b && a == c && b == c) {
  10.             System.out.println("yes");
  11.         } else {
  12.             System.out.println("no");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment