def desglose(dinero): while dinero mod 500 != 0: print '1 billete de 500' while dinero mod 200 != 0: print '1 billete de 200' while dinero mod 100 != 0: print '1 billete de 100' while dinero mod 50 != 0: print '1 billete de 50' while dinero mod 20 != 0: print '1 billete de 20' while dinero mod 10 != 0: print '1 billete de 10' while dinero mod 5 != 0: print '1 billete de 5' while dinero mod 2 != 0: print '1 moneda de 2' while dinero mod 1 != 0: print '1 billete de 1' dinero = raw_input('Introduce un numero: ') desglose(dinero)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question