From 6c2cbb0f171f09a0d7fa1aae9260bb8e64b70439 Mon Sep 17 00:00:00 2001 From: arthurtspears Date: Sat, 3 Feb 2024 12:25:08 -0800 Subject: Corrections --- InclassExercise3/InclassExercise3/Source.cpp | 10 +++++----- 1 file 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 +} -- cgit v1.2.3