mirror of
https://git.adityakumar.xyz/shout.git
synced 2024-11-09 16:29:44 +00:00
23 lines
398 B
C++
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;
|
|
|
|
}
|
|
}
|
|
}
|