Revision history of "컴퓨터프로그래밍및실습 (2022년)/반복문"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 14:32, 20 July 2022Swpark talk contribs 4,448 bytes +4,448 Created page with "=== for 문 === * 1 ~ 100까지 더하는 연산 <syntaxhighlight lang="java"> int sum = 0; for(int i = 1; i <= 100; i++) { sum += i; } System.out.println("1~" + (i - 1) + 까지의 합 : " + sum); </syntaxhighlight> <table2 sep=bar align=cccc> for (|<u>int i = 0, j = 100</u>; | <u>i <= 50 && j >= 50</u>; | <u>i++, j--</u>|) { | 초기화식 | 조건식 | 증감식 </table2> === while 문 === * 1 ~ 100까지 더하는..."