From 05a39284f96b69369cdcddf8bf0d7dffcfa6e5db Mon Sep 17 00:00:00 2001 From: Manuel Riquelme Date: Fri, 23 Jun 2023 07:37:06 +0200 Subject: [PATCH] reto08 fix, ahora puede dar cero --- ejercicios/reto08/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ejercicios/reto08/src/main.rs b/ejercicios/reto08/src/main.rs index a9b711d..88ad6aa 100644 --- a/ejercicios/reto08/src/main.rs +++ b/ejercicios/reto08/src/main.rs @@ -22,7 +22,8 @@ fn seudorandom() -> u32 { .unwrap() as u32; while now > 100 { - now = now - 100; + println!("{}", now); + now = now - 101; } now }