#include <iostream>
#include <string>
usingnamespace std;
//function declaration with default parameters
void PringSomethingLoop(string text = "Default", int n = 5);
int main()
{
//specify an arguement for both parameters.
PrintSomethingLoop("Hello, World", 2);
//specify argument for first parameter
PrintSomethingLoop("Hello, C++");
//use defaults for both parameters
PringSomethingLoop();
}
void PrintSomethingLoop(string text, int n)
{
for (int i = 0; i < n; ++i)
{
cout << text << endl;
cout << endl;
}
}