๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

์ „์ฒด ๊ธ€743

[์ฝ”๋“œ์—… ๊ธฐ์ดˆ 100์ œ-C์–ธ์–ด] 1011~1020๋ฒˆ 1011๋ฒˆ #include int main() { char x; scanf("%c", &x); printf("%c", x); return 0; } %c ๋Š” charํ˜•์˜ ์„œ์‹ ๋ฌธ์ž์ด๋‹ค. 1012๋ฒˆ #include int main() { float x; scanf("%f", &x); printf("%f", x); return 0; } %f ๋Š” ์‹ค์ˆ˜ํ˜•์˜ ์„œ์‹๋ฌธ์ž์ด๋‹ค. 1013๋ฒˆ #include int main() { int a, b; scanf("%d%d", &a, &b); printf("%d %d", a, b); return 0; } ์—ฌ๋Ÿฌ ๊ฐœ์˜ ๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•  ๊ฒฝ์šฐ, ์„ ์–ธํ•˜๊ณ  ์‹ถ์€ ๋ณ€์ˆ˜์˜ ๊ฐœ์ˆ˜๋งŒํผ์˜ ๋ณ€์ˆ˜๋ช…์„ ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„ํ•˜์—ฌ ์ ์–ด์ค€๋‹ค. 1014๋ฒˆ #include int main() { char x, y; sca.. 2023. 2. 27.
[์ฝ”๋“œ์—… ๊ธฐ์ดˆ 100์ œ-C์–ธ์–ด] 1001~1010๋ฒˆ 1001๋ฒˆ #include int main() { printf("Hello"); return 0; } 1002๋ฒˆ #include int main() { printf("Hello World"); return 0; } 1003๋ฒˆ #include int main() { printf("Hello\nWorld"); return 0; } ์ค„์„ ๋ฐ”๊ฟ€ ์œ„์น˜์— \n ์„ ๋„ฃ์–ด์•ผ ํ•œ๋‹ค. 1004๋ฒˆ #include int main() { printf("\'Hello\'"); return 0; } ๋ฌธ์žฅ ์•ˆ์— ' ๋ฅผ ํฌํ•จ์‹œํ‚ค๊ธฐ ์œ„ํ•ด์„œ๋Š” ๊ทธ ์•ž์— \ ๋ฌธ์ž๋ฅผ ๋„ฃ์–ด์ค€๋‹ค. 1005๋ฒˆ #include int main() { printf("\"Hello World\""); return 0; } ๋ฌธ์žฅ ์•ˆ์— " ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ๋ฐ˜๋“œ์‹œ \" .. 2023. 2. 27.
[์ฝ”๋“œ์—… ๊ธฐ์ดˆ 100์ œ-JAVA] 1031~1040๋ฒˆ 1031๋ฒˆ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int a = Integer.parseInt(st.nextToken()); br.close(); PrintWriter pw = new PrintWriter(System.out); pw.printf("%o", a); pw.flush(); pw.close();.. 2023. 2. 27.
[์ฝ”๋“œ์—… ๊ธฐ์ดˆ 100์ œ-JAVA] 1021~1030๋ฒˆ 1021๋ฒˆ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); String a = st.nextToken(); br.close(); PrintWriter pw = new PrintWriter(System.out); pw.println(a); pw.flush(); pw.close(); } } 1022๋ฒˆ import ja.. 2023. 2. 27.
[์ฝ”๋“œ์—… ๊ธฐ์ดˆ 100์ œ-JAVA] 1011~1020๋ฒˆ 1011๋ฒˆ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String a = br.readLine(); br.close(); PrintWriter pw = new PrintWriter(System.out); pw.println(a); pw.flush(); pw.close(); } } 1012๋ฒˆ import java.util.*; import java.io.*; public class Main { public st.. 2023. 2. 27.
[์ฝ”๋“œ์—… ๊ธฐ์ดˆ 100์ œ-JAVA] 1001~1010๋ฒˆ BufferedReader, StringTokenizer, PrintWriter ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ํ’€์—ˆ๋‹ค. ์†๋„(์‹œ๊ฐ„ ์ดˆ๊ณผ)๋ฅผ ์ƒ๊ฐํ•˜์˜€๋‹ค. 1001๋ฒˆ public class Main { public static void main(String[] args) { System.out.println("Hello"); } } 1002๋ฒˆ public class Main { public static void main(String[] args) { System.out.println("Hello World"); } } 1003๋ฒˆ public class Main { public static void main(String[] args) { System.out.println("Hello"); System.out.println("W.. 2023. 2. 27.
๋ฐ˜์‘ํ˜•