We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f435756 commit 80df3a9Copy full SHA for 80df3a9
โsrc/codeup100/c1041.java
@@ -0,0 +1,17 @@
1
+import java.util.Scanner;
2
+
3
+public class c1041 {
4
+ public static void main(String args[]){
5
+ Scanner sc = new Scanner(System.in);
6
+ System.out.println("์๋ฌธ์ ์ ๋ ฅ: ");
7
+ char c = sc.nextLine().charAt(0); // ๋ฌธ์ํ๋์ ๋ ฅ
8
+ c += 1; // ๋ค์ ๋ฌธ์๋ฅผ ์ ์ฅ
9
+ System.out.println(c);
10
11
+ }
12
+}
13
14
+// 1. ์ ๋ ฅ ํด๋์ค์ธ Scanner ๊ฐ์ฒด ์์ฑ (sc)
15
+// 2. ๋ฌธ์ ํ๋ ์ ๋ ฅ ํ ์ ์ฅ (c)
16
+// 3. c์ 1์ ๋ํ์ฌ ๋ค์ ๋ฌธ์(์์คํค์ฝ๋)๋ก ๋ฐ๊พผ ํ ์ ์ฅ
17
+// 4. ์ถ๋ ฅ
0 commit comments