Created
October 2, 2022 21:17
-
-
Save dimeprog/f3915e9b884d393849bb8f4facb77d74 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() { | |
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
task completed