From fff3f3f155f0624c1fcd38db8ef19d9a85464891 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 13 Feb 2019 15:39:19 -0600 Subject: Meaningful comments --- ee1301/wk2/lab2/calc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ee1301/wk2/lab2/calc.cpp') diff --git a/ee1301/wk2/lab2/calc.cpp b/ee1301/wk2/lab2/calc.cpp index f2e0e87..f9925b0 100644 --- a/ee1301/wk2/lab2/calc.cpp +++ b/ee1301/wk2/lab2/calc.cpp @@ -7,20 +7,20 @@ int main () { cout << "Enter an equation: "; cin >> a >> op >> b; cout << a << op << b << " = "; - - if (op=='+'){ + + if (op=='+'){ //Addition cout << a + b; } - if (op=='-'){ + if (op=='-'){ //Subtraction cout << a - b; } - if (op=='*'){ + if (op=='*'){ //Multiplication cout << a * b; } - if (op=='/'){ + if (op=='/'){ //Division cout << a / b; } -- cgit v1.2.3