shout/shout.cpp

23 lines
398 B
C++

#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;
}
}
}