aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor <[email protected]>2024-01-08 20:01:46 -0800
committerConnor <[email protected]>2024-01-08 20:01:46 -0800
commit23b8dc5467064fbeecca7178c12c23eb845dbd2e (patch)
tree6e53b97de399783552f7da92281505dc4912d9d4
parentDay one inclass excersize commit 1 (diff)
downloadhello-world-connormcdowell275-23b8dc5467064fbeecca7178c12c23eb845dbd2e.tar.xz
hello-world-connormcdowell275-23b8dc5467064fbeecca7178c12c23eb845dbd2e.zip
save 2
-rw-r--r--Hello World/Hello World/Program.cpp29
1 files changed, 28 insertions, 1 deletions
diff --git a/Hello World/Hello World/Program.cpp b/Hello World/Hello World/Program.cpp
index 586e13f..440ffa2 100644
--- a/Hello World/Hello World/Program.cpp
+++ b/Hello World/Hello World/Program.cpp
@@ -3,8 +3,35 @@
// Class: CST116
// Assignment: Inclass Exercise 1
+#include <iostream>
+
+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;
+
+ cout << "Enter a whole number: ";
+
+ cin >> i;
+
+ cout << "Your number was: " << i << endl;
+
+
+
return 0;
-} \ No newline at end of file
+} \ No newline at end of file