본문 바로가기

프로그래밍/자바

[자바] 정올 523 : 연산자 - 자가진단6

728x90
반응형
SMALL
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b= sc.nextInt();

        System.out.println(a +" > "+  b + " --- " + (a>b));
        System.out.println(a +" < "+  b + " --- " + (a<b));
        System.out.println(a +" >= "+  b + " --- " + (a>=b));
        System.out.println(a +" <= "+  b + " --- " + (a<=b));


    }
}
728x90
반응형
LIST