Created
November 1, 2018 17:05
-
-
Save MairwunNx/2719c56aaf26e6e14eebfb583a3373eb to your computer and use it in GitHub Desktop.
My first kotlin lang code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() | |
{ | |
val SomeNumber: Int = 16; | |
val SomeTwoNumber: Int = 396; | |
val SomeThreeNumber: Int; | |
val SomeOneResult: Int = SomeNumber + SomeTwoNumber; | |
if (SomeOneResult > 1000) | |
{ | |
println(SomeOneResult / 16); | |
} | |
else | |
{ | |
println(SomeOneResult.toString().removeRange(2, 3)); | |
SomeThreeNumber = SomeOneResult.toString().removeRange(2, 3).count(); | |
println("Finally value is: " + SomeThreeNumber); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment