Created with <3 with dartpad.dev.
Created
October 6, 2022 18:37
-
-
Save devvspaces/74e465f9d5217d40fda229fa2de2e8f6 to your computer and use it in GitHub Desktop.
tropical-osmium-7597
This file contains 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
void main() { | |
print(add(3, 2)); | |
print(multiply(12, 2)); | |
print(divide(1, 2)); | |
print(subtract(9, 2)); | |
print(mod(5, 2)); | |
} | |
num add(int a, b){ | |
return a + b; | |
} | |
num multiply(int a, b){ | |
return a * b; | |
} | |
num divide(int a, b){ | |
return a / b; | |
} | |
num subtract(int a, b){ | |
return a - b; | |
} | |
num mod(int a, b){ | |
return a % b; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment