[ppt자료(data)] 제어문[1]
페이지 정보
작성일 23-07-12 06:46
본문
Download : [ppt자료] 제어문[1].ppt
레포트/사범교육
[ppt자료(data)] 제어문[1]
Download : [ppt자료] 제어문[1].ppt( 30 )
04장. 제어문
조건에 따라 분기하는 if, if~else 및 switch 문의 사용법을 학습한다.
특정 문장을 반복적으로 수행하는 for, while, do~while 문의 사용법을 학습한다.
목차
1. 제어문의 槪念
2. if 문
3. if~else 문
4. 다중 if~else 문
5. switch 문
6. 지정된 횟수만큼 반복하는 for 문
7. 조건을 먼저 검사하는 while 문
8. 조건을 나중에 검색하는 do~while 문
01. 제어문
구분
제어문
선택문
if 문
if else 문
if else if 문
switch case 문
반복문
for 문
while 문
do while 문
보조 제어문
break 문
continue 문
02. if 문
형식 문장 1;
if(조건문) {
? 문장 2;
}
문장 3;
: 주어진 조건을 만족하는 경우에만 특정 문장을 수행하는 제어문
if문을 이용한 절대값 구하기
public class Exam_02{
public static void main(String args){
int x 〓 3;
if(x[0)
; //널문의 이해
x 〓 -x;
System.out.println(절대값 〓 + x);
}}
public class Exam_01{
public static void main(String args){
int x 〓 -3;
…(省略)
[ppt자료] 제어문[1] , [ppt자료] 제어문[1]사범교육레포트 , [ppt자료] 제어문[1]
순서
![[ppt자료]%20제어문[1]_ppt_01.gif](http://www.allreport.co.kr/View/%5Bppt%EC%9E%90%EB%A3%8C%5D%20%EC%A0%9C%EC%96%B4%EB%AC%B8%5B1%5D_ppt_01.gif)
![[ppt자료]%20제어문[1]_ppt_02.gif](http://www.allreport.co.kr/View/%5Bppt%EC%9E%90%EB%A3%8C%5D%20%EC%A0%9C%EC%96%B4%EB%AC%B8%5B1%5D_ppt_02.gif)
![[ppt자료]%20제어문[1]_ppt_03.gif](http://www.allreport.co.kr/View/%5Bppt%EC%9E%90%EB%A3%8C%5D%20%EC%A0%9C%EC%96%B4%EB%AC%B8%5B1%5D_ppt_03.gif)
![[ppt자료]%20제어문[1]_ppt_04.gif](http://www.allreport.co.kr/View/%5Bppt%EC%9E%90%EB%A3%8C%5D%20%EC%A0%9C%EC%96%B4%EB%AC%B8%5B1%5D_ppt_04.gif)
![[ppt자료]%20제어문[1]_ppt_05.gif](http://www.allreport.co.kr/View/%5Bppt%EC%9E%90%EB%A3%8C%5D%20%EC%A0%9C%EC%96%B4%EB%AC%B8%5B1%5D_ppt_05.gif)
![[ppt자료]%20제어문[1]_ppt_06.gif](http://www.allreport.co.kr/View/%5Bppt%EC%9E%90%EB%A3%8C%5D%20%EC%A0%9C%EC%96%B4%EB%AC%B8%5B1%5D_ppt_06.gif)
설명
[ppt자료(data)] 제어문[1]
[ppt자료],제어문[1],사범교육,레포트
다.