+ 1

"No Output" in C program😞. Please help!

Here's the code I'm writing for a challenge called "Kaprekar's Constant". It's working on other consoles but not here... https://code.sololearn.com/c8s7rpb7E379/?ref=app here's the challenge: https://www.sololearn.com/learn/6575/?ref=app

29th Mar 2018, 8:36 AM
Шащи Ранжан
Шащи Ранжан - avatar
5 Antworten
+ 1
Good eye Gordie! Shashi Ranjan you are not initializing the variable 'i' in bigger. That is causing the problem.
29th Mar 2018, 9:52 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
Thank you guys! It worked!😁
29th Mar 2018, 12:06 PM
Шащи Ранжан
Шащи Ранжан - avatar
0
@Gordie I don't think there's anything to do with the "pow()" 'coz it's working fine with int. See it here: https://code.sololearn.com/c8jXdE6YA4ql/?ref=app
29th Mar 2018, 9:32 AM
Шащи Ранжан
Шащи Ранжан - avatar