Advertisement
yovkovbpfps

3 Equal numbers

Mar 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement