summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjstmaxlol <maxwasmailed@proton.me>2025-05-22 19:08:29 +0200
committerjstmaxlol <maxwasmailed@proton.me>2025-05-22 19:08:29 +0200
commit0baa133d1850eecf8a89475c8ce2e48b4aef2137 (patch)
tree549f827ad3aa44e1473e9d83642032d39617aad1
parentfc505317a21a786973add4b2c5f654e2459fd0fa (diff)
OH SCHEISSE I PUSHED WITHOUT TESTING MY BAD
I FORGOR ABOUT MULTIPLICATIONS XD
-rw-r--r--xsc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xsc.cpp b/xsc.cpp
index 5999571..e0ab616 100644
--- a/xsc.cpp
+++ b/xsc.cpp
@@ -79,6 +79,9 @@ int calculate(double& n1, char& op, double& n2) {
case '-':
std::cout << n1 - n2;
return 0;
+ case '*':
+ std::cout << n1 * n2;
+ return 0;
case '/':
if (n2 == 0) {
std::cerr << "::> " << red << "xsc.MathError" << def << "/" << red << "divsion_by_zero";