Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / pract. 01 / task1.cpp
diff options
context:
space:
mode:
1 files changed, 12 insertions, 0 deletions
-rw-r--r--pract_SI/pract. 01/task1.cpp12
diff --git a/pract_SI/pract. 01/task1.cpp b/pract_SI/pract. 01/task1.cpp
new file mode 100644
index 0000000..54a1902
--- /dev/null
+++ b/pract_SI/pract. 01/task1.cpp
@@ -0,0 +1,12 @@
+#include<iostream>
+#include<string>
+using namespace std;
+int main()
+{
+ string name;
+ cout << "What is your name?\n";
+ cin >> name;
+ cout << "Hello, " << name << endl;
+
+ return 0;
+} \ No newline at end of file