From 3870f592fd2c462696f5e7e59ee82be9c6c0d811 Mon Sep 17 00:00:00 2001 From: Anibal LopezBonilla Date: Wed, 12 Oct 2022 20:29:24 -0700 Subject: Push 5 --- CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp') diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index eedcdbb..80e5ea1 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -63,27 +63,6 @@ using std::cin; int main() { - /*int age = 0; - - cout << "Enter your age: "; - cin >> age; - - // Breakpoint 1 - // Put a breakpoint on the following line - if (age == 1) - cout << "First Birthday" << endl; - else if (age >= 12 && age <= 19) - cout << "Teenager" << endl; - else if (age < 12) - cout << "Child" << endl; - else if (age > 62) - cout << "Senior" << endl; - // Breakpoint 2 - // Put a breakpoint on the following line - else - cout << "Adult" << endl; - - return 0;*/ int age = 0; cout << "Enter your age: "; @@ -104,4 +83,6 @@ int main() else cout << "Adult" << endl; + return 0; + } \ No newline at end of file -- cgit v1.2.3