Chapter 2: Problem 21
Write C++ statements to do the following: a. Declare int variable num1 and num2. b. Prompt the user to input two numbers. c. Input the first number in num1 and the second number in num2. d. Output num1, num2, and 2 times num1 minus num2. Your output must identify each number and the expression.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.