What will the output of the following program be if the user enters 10?
#include
using namespace std;
void func1()
{
cout << "Able was I\n";
}
void func2()
{
cout << "I saw Elba\n";
}
int main()
{
int input;
cout << "Enter a number: ";
cin >> input;
if (input < 10)
{
func1();
func2();
}
else
{
func2();
func1();
}
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.