aboutsummaryrefslogtreecommitdiff
path: root/Hello World
diff options
context:
space:
mode:
authorraquelc <[email protected]>2024-01-11 22:34:44 -0800
committerraquelc <[email protected]>2024-01-11 22:34:44 -0800
commit0830206fe5e90d3cc96fe173543b6530d5643596 (patch)
tree23fec216f564cf16c3f7fe422c317bcc9216ee49 /Hello World
parentupdate header (diff)
downloadhello-world-raquel191-develop.tar.xz
hello-world-raquel191-develop.zip
update input outputHEADdevelop
Diffstat (limited to 'Hello World')
-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 ced3731..6d34cd1 100644
--- a/Hello World/Hello World/Program.cpp
+++ b/Hello World/Hello World/Program.cpp
@@ -3,8 +3,22 @@
// Class: CST116
// Assignment: In class exercise 1
+#include <iostream>
+using std::count;
+using std::cin;
+using std::endl;
int main()
{
- return 0;
+ std::cout << "hello World "<< endl;
+
+ int i;
+
+ std::cout << "Enter a whole number: ";
+
+ cin >> i;
+
+ std::cout << "Your number was: " << i << endl;
+
+ return 0;
} \ No newline at end of file