Skip to content

Instantly share code, notes, and snippets.

@BracketCove
Created October 29, 2022 21:46
Show Gist options
  • Save BracketCove/de64ac315851095c6220e4ff31485174 to your computer and use it in GitHub Desktop.
Save BracketCove/de64ac315851095c6220e4ff31485174 to your computer and use it in GitHub Desktop.
An example of the order in which computer programs are executed.
//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