Consider the following program:
#include
using namespace std;
int main()
{
int num1, num2;
int temp = 0;
cout << "Enter two integers: ";
cin >> num1 >> num2 ;
cout << endl ;
while (((num1 + num2) % 5) != 0)
{
temp = num1 + num2;
num1 = num2;
num2 = temp;
cout << temp << " ";
}
cout << endl;
return 0;
}
a. What is the output if the input is 13 16?
b. What is the output if the input is -4 6?
c. What is the output if the input is 3 5?
d. What is the output if the input is 1 3?
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.