Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int nm1 = Integer.parseInt(sc.nextLine());
- int nm2 = Integer.parseInt(sc.nextLine());
- int nm3 = Integer.parseInt(sc.nextLine());
- if (nm1 == nm2 && nm2==nm3) {
- System.out.println("yes");
- } else {
- System.out.println("no");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment