Napisz program z użyciem 2 funkcji z których 1 funkcja wyświetla 10 gwiazdek a 2 wyświetla 20 wykrzykników (pętla for). Bardzo proszę o pomoc. ​

Odpowiedź :

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: