Print Friendly and PDF
Write a single C++ statement or line that accomplishes each of the following: a) Print the message "Enter two numbers". b) Assign the product of variables b and c to variable a. c) State that a program performs a payroll calculation (i.e., use text that helps to document a program d) Input three integer values from the keyboard into integer variables a, b and c.
Write a single C++ statement or line that accomplishes each of the following:

a) Print the message "Enter two numbers".

b) Assign the product of variables b and c to variable a.

c) State that a program performs a payroll calculation (i.e., use text that helps to document a program

d) Input three integer values from the keyboard into integer variables a, b and c.

Solution:

a) std::cout << "Enter two numbers.";

b) int a = b * c;

c) // program performs a payroll calculation

d) std::cin >> a >> b >> c;
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: