0

Create a program that asks a maths calculation and prints if the user answers it right or wrong. Can you change one of

please help me with the solution

4th Dec 2017, 5:37 AM
m yumbong
m yumbong - avatar
4 Answers
+ 4
You didn't even define the variables x, y and z. Replace them with starting miles, ending miles and gallons used if that's what you want to use.
6th Dec 2017, 5:31 AM
blackcat1111
blackcat1111 - avatar
+ 2
Why not try it yourself? If you get stuck then post your code here and we will help you. šŸ˜‰
4th Dec 2017, 6:58 AM
blackcat1111
blackcat1111 - avatar
0
#program startingmiles = float (input ("enter x ")) endngmiles = float (input ("enter y ")) gallonsused= float (input ("enter z")) average = (x+y+z)/3 print (average) please help me correct it.thanks
6th Dec 2017, 5:29 AM
m yumbong
m yumbong - avatar
0
thanks bro
6th Dec 2017, 5:43 AM
m yumbong
m yumbong - avatar