diff options
| author | jstmax! <87650746+MaxWasTakenYT@users.noreply.github.com> | 2024-10-17 18:45:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 18:45:04 +0000 |
| commit | cc16a84649e44eaa2d94fc8beeb530da52c81f00 (patch) | |
| tree | d5612dafd51871867aa37eea52d2868bdca71492 | |
| parent | 590b3f1d93e9250124897fd788f29233082afe65 (diff) | |
Update xsc.cpp
| -rw-r--r-- | xsc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ void usage() { system("figlet XSC | lolcat"); cout << "\neXtremelySimpleCalculator usage:\n" << "`xsc --help | -h` for help\n" - << "`xsc <number> <(+|-|*|/|%|^)> <number>` for mathematical operation\n" + << "`xsc <number> <(+|-|x|/|%|^)> <number>` for mathematical operation\n" << "`xsc -sqrt | -r <number>` for square root operation\n" << "\n[n!] `xsc` doesn't support mathematical expressions (to-do)\n"; } @@ -46,7 +46,7 @@ int main(int argc, char* argv[]) { else if (op == "-") { result = num1 - num2; } - else if (op == "*") { + else if (op == "x") { result = num1 * num2; } else if (op == "/") { |