Skip to main content
"Total cost: A cupcake costs A dollars and B cents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: A, B, N. It should print two numbers: total cost in dollars and cents." - Python coding question
CODING QUESTION
Here is question
SOLUTION
dollar=int(input())
cent=int(input())
no=int(input())
print((no*dollar)+((no*cent)//100))
print((no*cent)%100)
Input :
2
50
4
Output :
10
0