Consider the following program. (2, 3) Submit your answer to dropbox.
#includeusing namespace std;int main(){int num1, num2;int temp=0;cout<"enter two="">"enter>cin>>num1>>num2;cout<>while ((num1 + num2) % 2 !=(num1 + num2) % 3){temp = num1 + num2;num1= num2;num2 =temp;cout<><>}cout<><>return 0:}a. what is the output if the input is 10 10?b. What is the output if the input is–4 11?c.What is the output if the input is12 29?d. What is the output if the input is10 17?
using namespace std;
int main()
{
int num1, num2;
int temp=0;
cout<"enter two="">"enter>
cin>>num1>>num2;
cout<>
while ((num1 + num2) % 2 !=(num1 + num2) % 3)
temp = num1 + num2;
num1= num2;
num2 =temp;
cout<><>
}
return 0:
a. what is the output if the input is 10 10?
b. What is the output if the input is–4 11?c.What is the output if the input is12 29?d. What is the output if the input is10 17?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here