Skip to content

Instantly share code, notes, and snippets.

@MarkNwilliam
Last active October 21, 2022 10:36
Show Gist options
  • Save MarkNwilliam/cd7acb61d658f9cfda9e166c25b932cd to your computer and use it in GitHub Desktop.
Save MarkNwilliam/cd7acb61d658f9cfda9e166c25b932cd to your computer and use it in GitHub Desktop.
keen-cliff-1139
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