diff options
| author | arthurtspears <[email protected]> | 2024-02-03 12:25:08 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-03 12:25:08 -0800 |
| commit | 6c2cbb0f171f09a0d7fa1aae9260bb8e64b70439 (patch) | |
| tree | 4f1b6fc975b6abbabfd8c168dd8711842d3272e8 | |
| parent | Finished In Class Exercise 3 (diff) | |
| download | in-class-exercise-3-asahellt-main.tar.xz in-class-exercise-3-asahellt-main.zip | |
| -rw-r--r-- | InclassExercise3/InclassExercise3/Source.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/InclassExercise3/InclassExercise3/Source.cpp b/InclassExercise3/InclassExercise3/Source.cpp index 48bf325..deab9e4 100644 --- a/InclassExercise3/InclassExercise3/Source.cpp +++ b/InclassExercise3/InclassExercise3/Source.cpp @@ -25,14 +25,14 @@ int main() cout << " Your number is positive" << endl; } else if (i < 0) - - cout << " Your number is positive" - - ;else + { + cout << " Your number is negative" << endl; + } + else { cout << " Your number is zero.\n"; } return 0; -}
\ No newline at end of file +} |