diff options
| author | Connor McDowell <[email protected]> | 2024-01-20 12:08:50 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-01-20 12:08:50 -0800 |
| commit | 2629d6e2bcfce39f3fad9e3413c590388d1da4f0 (patch) | |
| tree | 8b5e2ea0cd59d2f4593439d3be9bb32545739e17 | |
| parent | save 2 (diff) | |
| download | hello-world-connormcdowell275-2629d6e2bcfce39f3fad9e3413c590388d1da4f0.tar.xz hello-world-connormcdowell275-2629d6e2bcfce39f3fad9e3413c590388d1da4f0.zip | |
inclass Exercise 1 final
| -rw-r--r-- | Hello World/Hello World/Program.cpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/Hello World/Hello World/Program.cpp b/Hello World/Hello World/Program.cpp index 440ffa2..fc3751c 100644 --- a/Hello World/Hello World/Program.cpp +++ b/Hello World/Hello World/Program.cpp @@ -9,27 +9,15 @@ using std::cout; int main() { - { - int i = 12; - int j = 5; - int k; - - const int k = 1; - } - j = 102; - k = 13; - - int _thirtyFive; - - std::cout << "Hello World"<< endl; - - int i; + + int i = 12; + std::cout << "Hello World"<< std::endl; cout << "Enter a whole number: "; - cin >> i; + std::cin >> i; - cout << "Your number was: " << i << endl; + cout << "Your number was: " << i << std::endl; |