Created with <3 with dartpad.dev.
Last active
October 21, 2022 10:36
-
-
Save MarkNwilliam/cd7acb61d658f9cfda9e166c25b932cd to your computer and use it in GitHub Desktop.
keen-cliff-1139
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
num add(num one, num two){ | |
num ans = one + two; | |
return ans; | |
} | |
num subtraction(num one, num two){ | |
num ans = one - two; | |
return ans; | |
} | |
num division(num one, num two){ | |
num ans = one / two; | |
return ans; | |
} | |
num multiplication(num one, num two){ | |
num ans = one * two; | |
return ans; | |
} | |
num modulus(num one, num two){ | |
num ans = one % two; | |
return ans; | |
} | |
void main() { | |
num one= 7; | |
num two = 5; | |
print(add(one, two)); | |
print(subtraction(one, two)); | |
print(division(one, two)); | |
print(modulus(one, two)); | |
print(multiplication(one, two)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment