Answer:
A and B have different output:
A output will be 1
B output will be 123
Explanation:
A
X = 0
do x < 3
x = x+1
print x
while
B
X = 0
do x = x+ 1
print x
while x < 3
For statement A the condition statement which suppose to be after "while" is not set therefore the value of x will be printed.
For statement B the condition statement is set "x < 3" in front of "while" thereby result in iteration until the condition is false.
Statement A output will be 1
Statement B output will be 123
Answer:
A = 5 + 1.75r
Explanation:
Amount you have = $5
Earning per roll of wrapping paper = $1.75
Let
r = number of rolls of wrapping paper
A = Total amount earned
A = 5 + 1.75r
Equation that represents the total amount A (in dollars) you have after selling r rolls of wrapping paper is
A = 5 + 1.75r