staticconstint MAX_LOOPS = 5; // <-- best to define number of loops as a constant
int main()
{
for (int loopCounter = 0; loopCounter < MAX_LOOPS; ++loopCounter)
{
int data = getData(); // <-- change "int" to the actual return type of getData() here!
int result = yourComputationHere(data); // <-- change "int" to the actual parameter type of displayOutput() here!
displayOutput(result);
}
}