objective for a computer project ,write an application to find the monthly water charges for the given initial reading and closing meter reaging.assume the water charges 10paise per liter
Answers
Answered by
0
let the initial meter reading be x.
let the closing meter reading be y.
def main():
x = int(input("Enter initial reading: "))
y = int(input("Enter final reading: "))
z = 10(y - x)
m = z/100 #to convert paises into rupees
print(m + " rupees")
while True:
main()
The above code works in python only.
Similar questions
Science,
7 months ago
History,
7 months ago
English,
1 year ago
World Languages,
1 year ago
Physics,
1 year ago
Computer Science,
1 year ago