HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
남득윤 학습 저장소
/
humancoding
humancoding
/
3️⃣
Section 3. 연산자와 분기식
3️⃣

Section 3. 연산자와 분기식

 
fun main(){ val a = +1 //=> unaryPlus() val b = !true // => not() val c = 20L - 3 //minus() val d = 2.15* 33 //times() val e = 1/10 //divide() val f = 21 % 10 //mod(), rem() val g = 21.rem(10) val h = (3.14 * 2 - 5) // compareTo() }
 
코틀린의 모든 연산자는 사실 함수이다!