15th Nov 2018, 11:37 AM
Julián Durán
Julián Durán - avatar
9 ответов
+ 5
You have to get new numero dividing numero by factor (numero = numero / factor) inside the loop
15th Nov 2018, 12:41 PM
KrOW
KrOW - avatar
+ 2
Do you need help, honfu~?
15th Nov 2018, 12:05 PM
Gordon
Gordon - avatar
+ 1
One thing: You need to indent the line below 'while...'
15th Nov 2018, 11:58 AM
HonFu
HonFu - avatar
+ 1
I don't speak Spanish (and I am not that great at maths), so I am not sure what you intend to do...
15th Nov 2018, 12:30 PM
HonFu
HonFu - avatar
+ 1
KrOW has the correct answer. Thanks to everybody!
15th Nov 2018, 6:11 PM
Julián Durán
Julián Durán - avatar
0
I have this code with an infinite loop in line 3
15th Nov 2018, 11:38 AM
Julián Durán
Julián Durán - avatar
0
True, it's already corrected
15th Nov 2018, 12:01 PM
Julián Durán
Julián Durán - avatar
0
Then, you seem to have no break condition for your loop: If the result is 0, exponent += 1 will be executed forever.
15th Nov 2018, 12:04 PM
HonFu
HonFu - avatar
0
That's my problem HonFu, when I input 28 an 7 the loop never stop
15th Nov 2018, 12:10 PM
Julián Durán
Julián Durán - avatar