Write a complete C++ program that performs the following tas…
Write a complete C++ program 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.
Read Details