일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 국회의원 & 높으신 분들 어록
- https://tecoble.techcourse.co.kr/post/2021-08-07-logback-tutorial/
- https://minkwon4.tistory.com/161
- Today
- Total
OPEN between Secret
import java.util.Scanner; public class maytoone { public static void main( String [] args){ Scanner sc = new Scanner(System.in); int inArray[] = new int [5]; int max = 0; for ( int i = 0 ; i max) max = inArray[i]; } System.out.println("입력된 수에서 가장 큰 수는" + max + "입니다."); } } -------------------------------------------------------------- inArray[i] = sc.nextInt(); 생성된 배열에다가 입력받은거 한개씩 저장하는방법 이다.(이게 ..
public class maytoone { public static void main (String[] args) { char al = 'a'; do { System.out.print(al); al = (char) (al + 1) ; } while (al
import java.util.Scanner; public class maytoone { public static void main (String [] args){ Scanner sc = new Scanner(System.in); int n = 0; double sum = 0; int i = 0; while ((i = sc.nextInt()) !=0){ sum = sum + i; n++; } System.out.println("입력된 수의 개수는" + n + "개이며 평균은 " + sum /n + "입니다."); } } -------------------------------------------------------------------------------- 입력된 숫자들을 표시해주고 (i = sc...