728x90
반응형
public class ImportExam {
public static void main(String args[]) {
int a = 20;
int b = 100;
if(a==b) {
System.out.println(a+ "와 "+b+"는 같다.");
}
else if(a<b) {
System.out.println(a+ "와 "+b+"는 보다 작다.");
}
else {
System.out.println(a+ "와 "+b+"는 보다 크다.");
}
}
}
728x90
반응형
'즐거운프로그래밍' 카테고리의 다른 글
[자바] 노트패드++ while문 (무한루프) (0) | 2023.10.13 |
---|---|
[자바] 노트패드++ while 문 (0) | 2023.10.13 |
[자바] 노트패드++ if~else 문 (0) | 2023.10.13 |
[자바] 노트패드++ Wrapper 클래스 (0) | 2023.10.12 |
[자바] 노트패드++ import 문 (0) | 2023.10.12 |