aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles <[email protected]>2024-01-12 19:07:07 -0800
committerMiles <[email protected]>2024-01-12 19:07:07 -0800
commite9388737c11aecd338f700af088d1b70b03306c7 (patch)
tree07263c041e25f0fc8cb3f29f365cb9c5041a9149
parentUpdate the header information. (diff)
downloadhello-world-miles-cell-e9388737c11aecd338f700af088d1b70b03306c7.tar.xz
hello-world-miles-cell-e9388737c11aecd338f700af088d1b70b03306c7.zip
Not 100% sure what I'm doing, tbh
-rw-r--r--Hello World/Hello World/Program.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/Hello World/Hello World/Program.cpp b/Hello World/Hello World/Program.cpp
index aacbb5c..9b55e86 100644
--- a/Hello World/Hello World/Program.cpp
+++ b/Hello World/Hello World/Program.cpp
@@ -1,10 +1,24 @@
// Name: Miles Ellsworth
// Date: 1/11/24
// Class: CST116
-// Assignment: In Class Exercise 1
+// 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