diff options
| author | Miles <[email protected]> | 2024-01-12 19:07:07 -0800 |
|---|---|---|
| committer | Miles <[email protected]> | 2024-01-12 19:07:07 -0800 |
| commit | e9388737c11aecd338f700af088d1b70b03306c7 (patch) | |
| tree | 07263c041e25f0fc8cb3f29f365cb9c5041a9149 | |
| parent | Update the header information. (diff) | |
| download | hello-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.cpp | 16 |
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 |