Notice
Recent Posts
Recent Comments
Link
목록8393 (1)
새로운시작
백준알고리즘 NO.8393
NO.8393 문제n이 주어졌을 때, 1부터 n까지 합을 구하는 프로그램을 작성하시오.입력첫째 줄에 n (1 ≤ n ≤ 10,000)이 주어진다.출력1부터 n까지 합을 출력한다. [JAVA] import java.util.Scanner; public class no8393 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; if(n >= 1 && n
기초/알고리즘
2017. 7. 7. 10:52