Question: 1. Suppose that num1, num 2 , num 3 are int variables, study the following statements and find what is the final values for the
1. Suppose that num1, num 2 , num 3 are int variables, study the following statements and find what is the final values for the three variables after running the program. Design a table that shows the value of each identifier after executing each sentence int num1; int num2; int num3; num1=18; // line1 num 1= num 1+27;// line 2 num 2= num 1;// line 3 num 3= num 2/5;// ine4 num 3= num 3/4;// line5 2. Write C++ program that displays all the above sentences with their results 3. Run the code and compare your results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
