From 92db7fe3a7704004ea48dbe9c93bb0eb66c48c62 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 13 Feb 2019 16:04:46 -0600 Subject: Remove uneeded else --- ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ee1301/wk2') diff --git a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp index b261664..f969268 100644 --- a/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp +++ b/ee1301/wk2/lab2/strap012_lab2_pay_stub.cpp @@ -22,7 +22,6 @@ int main () { cout << "Invalid option!" << endl; return 2; } - else{ cout << "How many dependents do you have?: "; cin >> Dependents; if (Hours > 40) { //Every hour over 40 constitutes as overtime @@ -47,5 +46,5 @@ int main () { << "Medical cost: $" << Health << endl << "Your net (after witholdings) pay is $" << NetPay << "." << endl; -} + } -- cgit v1.2.3