Skip to content

Instantly share code, notes, and snippets.

@dimeprog
Created October 2, 2022 21:17
Show Gist options
  • Save dimeprog/f3915e9b884d393849bb8f4facb77d74 to your computer and use it in GitHub Desktop.
Save dimeprog/f3915e9b884d393849bb8f4facb77d74 to your computer and use it in GitHub Desktop.
void main() {
num add = additon(15, 15);
print('The addition of the two numbers is $add');
num sub = subtraction(40, 20);
print('The substraction of the two numbers is $sub');
num xly = multiplication(10, 5);
print('The multiplication of the two numbers is $xly');
num mod = modulus(51, 2);
print('The modulus of the two numbers is $mod');
num div = division(100, 2);
print('The division of the two numbers is $div');
}
num additon(num firstNum, num secondNum) {
num result = firstNum + secondNum;
return result;
}
num subtraction(num firstNum, num secondNum) {
num result = firstNum - secondNum;
return result;
}
num division(num dividend, num divisor) {
num result = dividend / divisor;
return result;
}
num multiplication(num firstNum, num secondNum) {
num result = firstNum * secondNum;
return result;
}
num modulus(num dividend, num divisor) {
num result = dividend % divisor;
return result;
}
@dimeprog
Copy link
Author

dimeprog commented Oct 2, 2022

task completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment