aboutsummaryrefslogtreecommitdiff
path: root/InclassExercise3
diff options
context:
space:
mode:
authorarthurtspears <[email protected]>2024-02-03 12:25:08 -0800
committerGitHub <[email protected]>2024-02-03 12:25:08 -0800
commit6c2cbb0f171f09a0d7fa1aae9260bb8e64b70439 (patch)
tree4f1b6fc975b6abbabfd8c168dd8711842d3272e8 /InclassExercise3
parentFinished In Class Exercise 3 (diff)
downloadin-class-exercise-3-asahellt-main.tar.xz
in-class-exercise-3-asahellt-main.zip
CorrectionsHEADmain
Diffstat (limited to 'InclassExercise3')
-rw-r--r--InclassExercise3/InclassExercise3/Source.cpp10
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
+}