๐ฆ Changgo/โ๏ธ Java๋ฅผ ์๋ฐ
[Java] ํ๋ก๊ทธ๋๋จธ์ค : a์ b ์ถ๋ ฅํ๊ธฐ
์ ๋ฌ
2024. 9. 22. 03:48
๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/181951
ํ๋ก๊ทธ๋๋จธ์ค
์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์.
programmers.co.kr
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
System.out.printf("a = %d\n", a);
System.out.printf("b = %d", b);
}
}
๋ฐ์ํ