Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Result finder
fun main(args: Array<String>){ println("RESULT FINDER BY SANEER SHA.\n") var x=readLine()!!.toInt() print("Marks in Economics:") print(x) print("\nResult:") var y=when{ x<=34->'W' x>=35 && x<=54->'S' x>=55 && x<=64->'C' x>=65 && x<=74->'B' x>=75 && x<=100->'A' else->"error" } println(y) var xx=readLine()!!.toInt() print("Marks in Accounting:") print(xx) print("\nResult:") var yy=when{ xx<=34->'W' xx>=35 && xx<=54->'S' xx>=55 && xx<=64->'C' xx>=65 && xx<=74->'B' xx>=75 && xx<=100->'A' else->"error" } println(yy) var xxx=readLine()!!.toInt() print("Marks in Business Studies:") print(xxx) print("\nResult:") var yyy=when{ xxx<=34->'W' xxx>=35 && xxx<=54->'S' xxx>=55 && xxx<=64->'C' xxx>=65 && xxx<=74->'B' xxx>=75 && xxx<=100->'A' else->"error" } println(yyy) }
run
|
edit
|
history
|
help
1
D
iya
validation testing
?. in Kotlin
My script1
Function Call, Arithmetic Operations, User Input and more in Kotlin
Aula 1 - Orientacao a Objetos - Mao na Massa
KotlinSessionVII#IS_OPERATOR
test.java
Arun1