aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}