diff options
author | Aditya <bluenerd@protonmail.com> | 2022-05-04 15:24:12 +0530 |
---|---|---|
committer | Aditya <bluenerd@protonmail.com> | 2022-05-04 15:24:12 +0530 |
commit | 1fb56f5e0fa0672a479219a9ba1f2e5d834ad1fb (patch) | |
tree | 21c2cf4abb40d965a009f77c842de05ba2bf393d /shout.cpp | |
parent | a4bc1d2f37a8440048a7a0471c014d6aa153b530 (diff) |
Diffstat (limited to 'shout.cpp')
-rw-r--r-- | shout.cpp | 23 |
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; + + } + } +} |