Created
October 29, 2022 21:46
-
-
Save BracketCove/de64ac315851095c6220e4ff31485174 to your computer and use it in GitHub Desktop.
An example of the order in which computer programs are executed.
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
//take two Integers, a and b, and give me the result of adding them as an Integer | |
fun add(a: Int, b: Int): Int { | |
return a + b | |
} | |
//The computer begins reading at the line below this comment | |
fun main() { | |
val result = add(1, 2) | |
println(result) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment