4. Write a program to input in Paise. Convert to its equivalent Rupees and Paise.
Answers
Answered by
3
Answer:
its a python program
Explanation:
1st method
#program to input in Paise and Convert to its equivalent Rupees and Paise.
paise=float(input("enter the paise"))
rupees=paise/100
print(paise,"paise is equal to",rupees,"rupees")
2nd method
#user defined fuction to input in Paise and Convert to its equivalent Rupees and Paise.
def convert(p):
rupees=p/100
return p,"paise is equal to",rupees,"rupees"
#main
paise=float(input("enter the paise"))
print(convert(paise))
#hope it helps you
please mark brainliest
Similar questions