aboutsummaryrefslogtreecommitdiff
path: root/shout.cpp
diff options
context:
space:
mode:
authorAditya <bluenerd@protonmail.com>2022-05-04 15:24:12 +0530
committerAditya <bluenerd@protonmail.com>2022-05-04 15:24:12 +0530
commit1fb56f5e0fa0672a479219a9ba1f2e5d834ad1fb (patch)
tree21c2cf4abb40d965a009f77c842de05ba2bf393d /shout.cpp
parenta4bc1d2f37a8440048a7a0471c014d6aa153b530 (diff)
add files and update READMEHEADmaster
Diffstat (limited to 'shout.cpp')
-rw-r--r--shout.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/shout.cpp b/shout.cpp
new file mode 100644
index 0000000..d3e266d
--- /dev/null
+++ b/shout.cpp
@@ -0,0 +1,23 @@
+#include <iostream>
+
+int main(int argc, char** argv)
+{
+ for (int a {1}; a < argc; ++a)
+ {
+ for (int i {}; argv[a][i] != '\0'; ++i)
+ {
+ std::cout << argv[a][i] << " ";
+ }
+ std::cout << std::endl;
+ for (int i {1}; argv[1][i] != '\0'; ++i)
+ {
+ std::cout << argv[1][i] << " ";
+ for (int j {1}; j < i; ++j)
+ {
+ std::cout << " ";
+ }
+ std::cout << argv[a][i] << std::endl;
+
+ }
+ }
+}