import java.util.Scanner; public class If_else_02 { /************************************ IF else型 ************************************/ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a,b; System.out.print("aはいくつ?"); a=sc.nextInt(); System.out.print("bはいくつ?"); b=sc.nextInt(); if (a==b) System.out.print("aとbは同じ値です\n"); else System.out.print("aとbは違う値です\n"); System.out.print("\nプログラムを終了します\n"); } }