Question: write in c++ write the following code statements: declare a variable named x and give it the value 2 declare a variable named y and
write in c++
write the following code statements:
declare a variable named x and give it the value 2
declare a variable named y and give it the value 5
write the code that will multiply X and Y and print out the resul
write the following code statements:
declare a variable named x and give it the value 2
declare a variable named y and give it the value 5
write the code that will multiply x by 2 and print out the result
write the code that will divide 8 by y and print out the result (HINT: 8/y)
write the following code statements:
declare a variable named x and give it the value 2
declare a variable named y and give it the value 5
write the code that will add X and Y and print out the result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
