daily pastebin goal
22%
SHARE
TWEET

3 Equal numbers

yovkovbpfps Mar 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.sql.SQLOutput;
  2. import java.util.Scanner;
  3.  
  4. public class Multi {
  5.     public static void main(String[] args) {
  6.         Scanner scanner = new Scanner(System.in);
  7.  
  8.         int num1 = Integer.parseInt(scanner.nextLine());
  9.         int num2 = Integer.parseInt(scanner.nextLine());
  10.         int num3 = Integer.parseInt(scanner.nextLine());
  11.  
  12.         if (num1 == num2 && num2 == num3) {
  13.             System.out.println("yes");
  14.         } else {
  15.             System.out.println("no");
  16.         }
  17.         }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top