diff options
| author | Anibal LopezBonilla <[email protected]> | 2022-10-12 20:29:24 -0700 |
|---|---|---|
| committer | Anibal LopezBonilla <[email protected]> | 2022-10-12 20:29:24 -0700 |
| commit | 3870f592fd2c462696f5e7e59ee82be9c6c0d811 (patch) | |
| tree | e7de719ec2ddd24c7cbd754d84d4f82f6d8727be | |
| parent | Push 4 (diff) | |
| download | cst116-ch7-debugging-lopez-bonilla-3870f592fd2c462696f5e7e59ee82be9c6c0d811.tar.xz cst116-ch7-debugging-lopez-bonilla-3870f592fd2c462696f5e7e59ee82be9c6c0d811.zip | |
Push 5
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
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 |