aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Brown <[email protected]>2024-01-10 00:20:58 -0800
committerNataliia Brown <[email protected]>2024-01-10 00:20:58 -0800
commit870615a0ff9a4a4f439d549592f9d29e2ff0f721 (patch)
treedafb054f1dfa4fd746cdea89a0f034acf17dd788
parentInitial commit Ex.2 (diff)
downloadhello-world-natabrown-870615a0ff9a4a4f439d549592f9d29e2ff0f721.tar.xz
hello-world-natabrown-870615a0ff9a4a4f439d549592f9d29e2ff0f721.zip
Second commit.
-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 de948ea..e636d2c 100644
--- a/Hello World/Hello World/Program.cpp
+++ b/Hello World/Hello World/Program.cpp
@@ -5,10 +5,24 @@
+#include <iostream>
+
+using std::cout;
+using std::cin;
+using std::endl;
int main()
{
-
+ cout << "Hello World" << endl;
+
+ int i;
+
+ cout << "Enter a whole number: ";
+
+ cin >> i;
+
+ cout << "Here is your number: " << i << endl;
+
return 0;
} \ No newline at end of file