Skip to content

Instantly share code, notes, and snippets.

@Zaryob
Created February 26, 2025 21:55
Show Gist options
  • Save Zaryob/5c9faae40702b2e5f21bdf5f538f0ed7 to your computer and use it in GitHub Desktop.
Save Zaryob/5c9faae40702b2e5f21bdf5f538f0ed7 to your computer and use it in GitHub Desktop.
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