aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ee1301/wk2/lab2/calc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ee1301/wk2/lab2/calc.cpp b/ee1301/wk2/lab2/calc.cpp
index 8fad156..ebe95f4 100644
--- a/ee1301/wk2/lab2/calc.cpp
+++ b/ee1301/wk2/lab2/calc.cpp
@@ -4,7 +4,7 @@ using namespace std;
int main () {
int a,b;
char op;
- cout << "Enter an equation: "
- cin >> a, op, b;
- cout << a << op << b << "="
+ cout << "Enter an equation: ";
+ cin >> a >> op >> b;
+ cout << a << op << b << " = " << << endl;
}