Computer Science, asked by kpfeverforever, 7 months ago

python code to convert rs into paise​

Answers

Answered by kings07
4
We know that 1 rupee = 100 paise. When weconvert rupees into paise, we multiply by 100.How to convert paise into rupees? To convert paise into rupees first we need to count two digits from the right and put a point and also write Rs or Re in the beginning.
Answered by AadilPradhan
0

Python code to convert Rs into Paise is

Code:

#Function below describes conversion of Rs to Paise

def rupees_to_paise(rupees):

   return rupees * 100 #paise=rupees*100

#main function starts here

amount_in_rupees = int(input("Enter rupees: "))#taking rupees as input

amount_in_paise = rupees_to_paise(amount_in_rupees)#calling function

print("Paise value is ",amount_in_paise) #printing paise value

Output:

Enter rupees: 50

Paise value is 5000

#SPJ3

Similar questions