Files
42_INT_09_piscine_cpp/d00/megaphone.cpp
2022-02-01 21:13:08 +01:00

14 lines
356 B
C++

#include <iostream>
int main(int ac, char **av)
{
if (ac < 2)
std::cout << std::uppercase << "shhhhh... I think the students are asleep...";
else
for (int i = 1; av[i] != NULL; i++)
for (int j = 0; av[i][j] != '\0'; j++)
std::cout << (char)toupper(av[i][j]);
std::cout << std::endl;
return 0;
}