diff --git a/exercicios-python/moedas.py b/exercicios-python/moedas.py new file mode 100644 index 0000000..1b06489 --- /dev/null +++ b/exercicios-python/moedas.py @@ -0,0 +1,22 @@ +troco = 187 +moedas = [1,5,10,25,50,100] +moedasr = moedas[::-1] +valor = 0 +moedas_final = 0 + + + +for moeda in moedasr: + while valor < troco: + valor += moeda + moedas_final += 1 + if valor > troco: + moedas_final -= 1 + valor -= moeda + break + if valor == troco: + print(moedas_final) + break + + + \ No newline at end of file diff --git a/index.html b/site-exercicios/site01/index.html similarity index 100% rename from index.html rename to site-exercicios/site01/index.html diff --git a/style.css b/site-exercicios/site01/style.css similarity index 100% rename from style.css rename to site-exercicios/site01/style.css