Question: (1). Write a C++ program that performs the following operations: Define two integer variables named IntV1 and IntV2; Calculate the value of IntV2: IntV2 =

(1). Write a C++ program that performs the following operations: Define two integer variables named IntV1 and IntV2; Calculate the value of IntV2: IntV2 = IntV1 + 3, and then print the value of IntV2; Calculate the value of IntV2: IntV2 = IntV1 % 5, and then print the value of IntV2; Calculate the value of IntV2: IntV2 = IntV1++, and then print the value of IntV2; Calculate the value of IntV2: IntV2 = --IntV1, and then print the value of IntV2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
