개인 공부/JAVA

개인 공부/JAVA

[JAVA] Code Up 기초 100제 (1073 ~ 1082)

# 1073 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true) { int N = sc.nextInt(); if(N == 0) { break; } System.out.println(N); } } } # 1074 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); while(N != 0) { System.out.println(N); ..

개인 공부/JAVA

[JAVA] Code Up 기초 100제 (1063 ~ 1072)

# 1063 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int result = (a > b) ? a : b; System.out.println(result); } } # 1064 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt()..

개인 공부/JAVA

[JAVA] Code Up 기초 100제 (1053 ~ 1062)

# 1053 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a == 0) { System.out.println(1); } else if (a == 1) { System.out.println(0); } } } # 1054 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextIn..

개인 공부/JAVA

[JAVA] Code Up 기초 100제 (1043 ~ 1052)

# 1043 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a % b); } } # 1044 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long result = (long)N + 1; System.out.println(resul..

내캉
'개인 공부/JAVA' 카테고리의 글 목록 (4 Page)