Computer Science, asked by mudavathlavanya7, 6 months ago

write a function that takes amount in dollars and dollar to rupee conversion price it then returns the amount converted in to rupees. Create the function in both void and non void forms​

Answers

Answered by gongalladithya
0

Answer:

YOU CAN DO IT IN .XLS

Answered by prakharagrawal6055
0

Answer:

#definition of the function

def dollar_to_rupee(amount,price):

   rs=amount*price

   return rs

def dollar_rupee(amount,price):

   rs=amount*price

   print("Amount converted in rupees is= Rs.",rs,"(Void)")

#main program

am=float(input("Enter the amount is dollars:"))

pr=float(input("Enter the dollar to rupee conversion price:"))

rupee=dollar_to_rupee(am,pr)

print("Amount converted in rupees is= Rs.",rupee,"(Non-Void)")

dollar_rupee(am,pr)

Explanation:

Similar questions