character.tostring1 [백준 11720번 ː 자바(JAVA)] 숫자의 합 N개의 숫자가 공백 없이 쓰여있다. 이 숫자를 모두 합해서 출력하는 프로그램을 작성하시오. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String num = sc.next(); int count = 0; for(int i=0; i 2020. 5. 7. 이전 1 다음