일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 시간복잡도
- 오븐시계
- springboot
- 웹기초
- 다차원배열순회
- 이미지생성
- VGG-F
- 백준
- 포인터
- 다차원
- 김영한
- 스프링기초
- C
- C언어로쉽게풀어쓴자료구조
- 자료구조
- gan
- 배열
- 파일읽고쓰기
- inflearn
- 자바
- ChatGPT
- VGG-M
- VGG-S
- 문자열
- 김영한스프링부트
- strdup
- Intellij
- 조건문
- vgg
- 스프링입문
- Today
- Total
목록STUDY (71)
YUIN

package chap_04;public class _08_NestedLoop { `public static void main(String[] args) {` `//이중 반복문` `//별(*) 사각형 만들기` `/*` `*****` `*****` `*****` `*****` `*****` `*/` `for (int i = 0; i < 5; i++) {` `for (int j = 0; j < 5; j++) {` `System.*out*.print("*");` `}` `System.*out*.println();` `}` `//별 (*) 왼쪽 삼각형 만들기` `for (int i = 0; i < 5; i++) {` `for (int j = 0; j

package chap_04;public class _08_NestedLoop { `public static void main(String[] args) {` `//이중 반복문` `//별(*) 사각형 만들기` `/*` `*****` `*****` `*****` `*****` `*****` `*/` `for (int i = 0; i < 5; i++) {` `for (int j = 0; j < 5; j++) {` `System.*out*.print("*");` `}` `System.*out*.println();` `}` `//별 (*) 왼쪽 삼각형 만들기` `for (int i = 0; i < 5; i++) {` `for (int j = 0; j

package chap_04;public class _07_DoWhile { `public static void main(String[] args) {` `//반복문 DoWhile` `int distance=25; //전체 거리 25m` `int move=0; //현재 이동 거리 0m` `int height=2; //키 2m` `while(move+height

package chap_04;public class _06_While { `public static void main(String[] args) {` `//반복문 While` `//수영장에서 수영을 하는 모습` `int distance =25; //전체 거리 25m` `int move=0;//현재 이동 거리 0m` `while(move

//짝수만 출력 (fori 만 적고 엔터 intelliJ) for (int i = 0; i 0 ; i--) { System.out.println(i); } //1부터 10까지의 수들의 합 //1+2+,,,+10=55 int sum=0; for (int i = 1; i

package chap_04;public class _05_For { `public static void main(String[] args) {` `//반복문 For` `//이화 매장` `System.*out*.println("어서오세요. 이화입니다.");` `//또다른 손님이 들어오면?` `System.*out*.println("어서오세요. 이화입니다.");` `System.*out*.println("어서오세요. 이화입니다.");` `System.*out*.println("어서오세요. 이화입니다.");` `System.*out*.println("어서오세요. 이화입니다.");` `System.*out*.println("어서오세요. 이화입니다.");` `System.*out*.println("어서오세요. ..

//중고상품의 등급에 따른 가격을 책정 (1급: 최상, 4급: 최하) int grade=1; //등급int price=7000; //기본 가격switch (grade){ `case 1:` `price+=1000;//price=price+1000;` `case 2:` `price+=1000;` `case 3:` `price+=1000;` `break;` } System.*out*.println(grade+"등급 제품의 가격:"+price+"원"); //1등급 제품의 가격: 10000원 //2등급 제품의 가격: 9000원

package chap_04;public class _04_SwitchCase { `public static void main(String[] args) {` `//Switch Case` `//1등: 전액 장학금` `//2등: 반액 장학금` `//3등: 반액 장학금` `//그 외: 장학금 대상 아님` `int ranking=1; //1등` `if (ranking==1){` `System.*out*.println("전액 장학금");` `} else if (ranking==2) {` `System.*out*.println("반액 장학금");` `} else if (ranking==3) {` `System.*out*.println("반액 장학금");` `} else {` `System.*out*.println..

package chap_04;public class _03_Elseif { `public static void main(String[] args) {` `//조건문 ElseIf` `//한라봉 에이드가 있으면 +1` `//망고 주스가 있으면 +1` `//또는 아이스 아메리카노 +1` `boolean hallabongAde=true; //한라봉 에이드` `boolean mangoJuice=true; //망고 주스` `if (hallabongAde){` `System.*out*.println("한라봉 에이드 +1");` `} else if (mangoJuice) {` `System.*out*.println("망고 주스 +1");` `} else {` `System.*out*.println("아이스 아메리카노 ..