Question 13 – C++ Programming – Version C Write a complete C…
Questions
Questiоn 13 – C++ Prоgrаmming – Versiоn C Write а complete C++ progrаm that performs the following tasks: Declare and initialize three variables using three different data types: An int variable named number1 with the value 12 A double variable named number2 with the value 6.5 A char variable named grade with the value 'C' Calculate and display the result of: Result = (number1 × 2) + number2 Increase number1 by 3 using the compound assignment operator and display the result. Use and display the result of: Pre-increment Post-increment Pre-decrement Post-decrement Display the final value of number1, the equation result, and the character.