+ 2

How to stop a program in kotlin??

how to stop running program in kotlin for example if the age <16 (stop the program) how???

26th Feb 2018, 7:32 AM
yousef mohamed
yousef mohamed - avatar
3 Answers
+ 1
return a value
26th Feb 2018, 7:47 AM
Toni Isotalo
Toni Isotalo - avatar
0
can u give an example??
26th Feb 2018, 12:18 PM
yousef mohamed
yousef mohamed - avatar
0
If you want to stop your code from executing use ”return” and the rest of the code is ignored
26th Feb 2018, 12:36 PM
Toni Isotalo
Toni Isotalo - avatar