Computer Science, asked by ritiknikhare342, 6 hours ago

One day Sanjay got fed up with the money vending machine because it always used to give him a notes in smaller denomination even for the biggest value, so he planned to change the way the machine was working and wanted that the machine should always give him the minimum possible number of bank notes.

Write a program which reads the value of the amount need to be withdrawn and output the count of the each note which will be vended by the machine.​

Answers

Answered by sourasghotekar123
0

Answer:

Explanation:

n=int(input("enter the number "))

i=1

while True:

if n-i**2>0:

 n=n-i**2

 i=i+1

else:

 break

print(n)

Can you make a coin that weighs exactly the same as the genuine thing and trick a vending machine with it?

  • The sophistication of these devices varies greatly; some examine diameter, others thickness, others weight, while some assess electrical conductivity or perhaps another electromagnetic property that depends on the metals involved.

  • Many people combine several of those methods.

  • It thus varies.

  • However, it's important to note that many coins are worth more as scrap metal than they are worth as coins.

  • That is undoubtedly true for US pennies and nickels, but not for dimes and quarters.

  • You might as well have used an actual coin by the time you've stamped them out to the proper size, weight, and thickness.

#SPJ1

https://brainly.in/question/53948389

Similar questions