aboutsummaryrefslogtreecommitdiff
path: root/Project1/project.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/project.cpp')
-rw-r--r--Project1/project.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/Project1/project.cpp b/Project1/project.cpp
new file mode 100644
index 0000000..f9451df
--- /dev/null
+++ b/Project1/project.cpp
@@ -0,0 +1,31 @@
+// name: Connor Mcdowell
+// date: 3/9/2024
+// class: CST 116
+// reason: in class exercise number 3.
+
+#include <iostream>
+
+using std::cin;
+using std::cout;
+using std::endl;
+
+int main()
+{
+ int input = 0;
+ cout << "Please enter a number: ";
+ cin >> input;
+ cout << " " << endl;
+ if(input == 0)
+ {
+ cout << "Your input is exactly 0!" << endl;
+ }
+ if(input < 0)
+ {
+ cout << "Your number is a negative number!" << endl;
+ }
+ if(input > 0)
+ {
+ cout << "Your number is a positive number!" << endl;
+ }
+ return 0;
+} \ No newline at end of file