Created
February 26, 2025 21:55
-
-
Save Zaryob/5c9faae40702b2e5f21bdf5f538f0ed7 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
module MathModule; | |
int multiply(int a, int b) { | |
return a * b; | |
} | |
double divide(double a, double b) { | |
if (b == 0) { | |
throw std::invalid_argument("Division by zero!"); | |
} | |
return a / b; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment