Question: CS 1 0 5 0 - Prelab 2 Spring 2 0 2 4 Concepts to Practice Simple input / output Integer variables Arithmetic operators Description
CS Prelab
Spring
Concepts to Practice
Simple inputoutput
Integer variables
Arithmetic operators
Description
For the prelab assignment, write a program that reads in four integer numbers from user input that will be entered on the same line and separated by a space. The first integer should be called the second the third and the fourth
Print the following:
Print the values of and
Print the value of the sum of and
Print the value of the product of A and
Print the value of the integer quotient of A divided by C
Print the value of the integer remainder of divided by
Print the value of the quantity A times divided by integer division the quantity B plus D
Sample Output
Enter integers ABCD separated by spaces:
Initial values
Calculated values
The sum of and
The product of A and
The integer quotient of A divided by
The integer remainder of divided by
The product of A and divided by the quantity sum of and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
