aboutsummaryrefslogtreecommitdiff
path: root/In-ClassExercise3
diff options
context:
space:
mode:
Diffstat (limited to 'In-ClassExercise3')
-rw-r--r--In-ClassExercise3/In-ClassExercise3/Source.cpp38
1 files changed, 37 insertions, 1 deletions
diff --git a/In-ClassExercise3/In-ClassExercise3/Source.cpp b/In-ClassExercise3/In-ClassExercise3/Source.cpp
index 29d6b08..98c8ac0 100644
--- a/In-ClassExercise3/In-ClassExercise3/Source.cpp
+++ b/In-ClassExercise3/In-ClassExercise3/Source.cpp
@@ -1,2 +1,38 @@
// Name: Arthur Spears
-// \ No newline at end of file
+// Date: 113/24
+// Class: CST 116
+// Assignment: InClass Exercise 3
+
+#include <iostream>
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+
+int main()
+{
+
+
+ cout << "Please enter a whole number: ";
+
+ int i = 0;
+
+ cin >> i;
+
+ if(i > 0)
+ {
+ cout << "Your number is positive" << endl;
+ }
+ else if (i < 0)
+ {
+ cout << "Your number is negative" << endl;
+ }
+ else
+ {
+ cout << "Your number is zero.\n";
+ }
+
+
+ return 0;
+} \ No newline at end of file