Question: write the following in c++ create a program that will perform the following tasks: create a program named Lab1 create a variablee named A and

write the following in c++

create a program that will perform the following tasks:

create a program named Lab1

create a variablee named A and assign the value 1 to it

create a variable named B and assign the value 2 to it

create a variable named C and assign the value 10 to it

create a variablee named D and assign the value 2.2 to it

create an output statement that will add A + B (1+2)

create an output statement that will subtract 4 from 10 (10-4)

create an output statement that will subtract A from C (10-2)

create an output statement that will multiply B * D (2 * 2.2)

create an output statement that will divide C by B (10/2)

create a program that will perform the following tasks:

create a program named Lab2

create a program that asks the user to input two numbers

the program will add the numbers and display the output

ask the user to input three numbers to be multiplied

display the sum of the three numbers after they are multiplied

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!