Consider the following program. (2, 3) Submit your answer to dropbox. #include using namespace std; int main() { int num1, num2; int temp=0; cout>num1>>num2; cout


Consider the following program. (2, 3) Submit your answer to dropbox.


#include


using namespace std;


int main()


{


int num1, num2;


int temp=0;


cout<"enter two="">


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?



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here