aboutsummaryrefslogtreecommitdiff
path: root/InClass Exercise2/Source.cpp
diff options
context:
space:
mode:
authorMiles-Cell <[email protected]>2024-01-24 21:28:22 -0800
committerMiles-Cell <[email protected]>2024-01-24 21:28:24 -0800
commit45034de0412fd1673a9644cd94998ac21a8132f0 (patch)
tree92292dec4950baa4f98b70694344de5d5202fa23 /InClass Exercise2/Source.cpp
parentExercise Completed!! (diff)
downloadin-class-exercise-3-miles-cell-45034de0412fd1673a9644cd94998ac21a8132f0.tar.xz
in-class-exercise-3-miles-cell-45034de0412fd1673a9644cd94998ac21a8132f0.zip
Exercise completed!
Diffstat (limited to 'InClass Exercise2/Source.cpp')
-rw-r--r--InClass Exercise2/Source.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/InClass Exercise2/Source.cpp b/InClass Exercise2/Source.cpp
new file mode 100644
index 0000000..9f8fe52
--- /dev/null
+++ b/InClass Exercise2/Source.cpp
@@ -0,0 +1,23 @@
+// Name: Miles Ellsworth
+// Date: 1/11/2024
+// Class: CST 116
+// Assignment: In-Class Exercise 2
+
+#include <iostream>
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+
+int main ()
+{
+ int i = 0;
+
+ std::cout << "Can you input a whole number, please? ";
+ std::cin >> i;
+ std::cout << "You inputted " << i << std::endl;
+
+
+ return 0;
+} \ No newline at end of file