5. 산술 연산자 (Arithmetic Operator) + - * / % #16
Unanswered
JoisFe
asked this question in
Kotlin 200문제로 격파!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
5. 산술 연산자 (Arithmetic Operator) + - * / %
산술 연산자 (Arithmetic Operator) :
가감승제를 수행하는 연산자
val num: Int = 15 - 4 * 3val num2: Int = 65 % 7val num3: Double = 7.5 / 5 + 22.25val num4: Double = num / num2 + 0.74의 결과를 올바르게 1.7이 아닌 2.2가 나오게 하려면 ?
코틀린에서 Int 타입을 Double 타입으로 변환할 때 캐스팅이 아닌 toDouble()을 사용하는 이유
Reference
초보자를 위한 Kotlin 200제, 정보문화사, [엄민석]
Beta Was this translation helpful? Give feedback.
All reactions