diff options
| author | Nataliia Brown <[email protected]> | 2024-01-16 23:27:40 -0800 |
|---|---|---|
| committer | Nataliia Brown <[email protected]> | 2024-01-16 23:27:40 -0800 |
| commit | cdfc5eacc178363c6f0116e103d1f037c59eb8f3 (patch) | |
| tree | e552d46774249887d3daf388e0656dbd5b84ad28 /InClassExercise3/Project1/IN-class.cpp | |
| parent | Exercise completed (diff) | |
| download | in-class-exercise-3-natabrown-main.tar.xz in-class-exercise-3-natabrown-main.zip | |
Diffstat (limited to 'InClassExercise3/Project1/IN-class.cpp')
| -rw-r--r-- | InClassExercise3/Project1/IN-class.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/InClassExercise3/Project1/IN-class.cpp b/InClassExercise3/Project1/IN-class.cpp index d2a1178..1cfc1c4 100644 --- a/InClassExercise3/Project1/IN-class.cpp +++ b/InClassExercise3/Project1/IN-class.cpp @@ -26,11 +26,11 @@ int main() { cout << "Your number is positive\n"; } - if (i < 0) + else if (i < 0) { cout << "Your number is negative\n"; } - else + else { cout << "Your number is zero.\n"; } |