IT

day 2 - if statement. func 정의 본문

Learn to Code

day 2 - if statement. func 정의

손님번호 2022. 4. 26. 22:06

what I have learned until now

1) if statement.

 

if condition {

    명령문

} else if condition

  명령문

}

 

2) boolean statement.  : a condition like  "true" or "false"

 if statement 안에 차례로 명령문을 쓸 수 있다. 

 

 

 

 

이런 식으로 두개

 

 

 

 

 

 

func 문법을 배우고 있습니다. 

 

unless I would forget. 

Comments