Skip to content

Instantly share code, notes, and snippets.

@devvspaces
Created October 6, 2022 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devvspaces/74e465f9d5217d40fda229fa2de2e8f6 to your computer and use it in GitHub Desktop.
Save devvspaces/74e465f9d5217d40fda229fa2de2e8f6 to your computer and use it in GitHub Desktop.
tropical-osmium-7597

tropical-osmium-7597

Created with <3 with dartpad.dev.

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