summaryrefslogtreecommitdiff
path: root/xsc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xsc.cpp')
-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";