Odpowiedź:
#include <iostream>
using namespace std;
void showExclamation()
{
for (int i = 0; i < 10; i++)
{
cout << "!";
}
cout << endl;
}
void showQuestion()
{
for (int i = 0; i < 20; i++)
{
cout << "?";
}
}
int main(int argc, char const *argv[])
{
showExclamation();
showQuestion();
return 0;
}
Wyjaśnienie: