Posted 20 March 2014 - 08:45 PM
Normally, 3/2 would produce 1.5.
But what if you wanted 2 (estimate)?
First, the variables.
A (number 1), B (number 2) and C (estimated answer).
But what if you wanted 2 (estimate)?
First, the variables.
A (number 1), B (number 2) and C (estimated answer).
A=3
B=2
C=2
To print the answer and estimated answer, use this:
print ("Answer is" A/B"!")
print ("Estimated answer is" C"!")
Edit: Removed size tags from one of the code tags.Edited on 20 March 2014 - 07:46 PM