0

I don't understand what is the problem here

I want to print this series till n,but somehow I have no idea it's not working..please help me https://code.sololearn.com/cV7bH5RVpuRK/?ref=app

4th Apr 2022, 7:26 PM
ANIK
ANIK - avatar
3 Réponses
- 1
for(i=1;i<0;i++) this loop never starts because I =1 and I<0 is false.. You have extra semi colon after reversedN in declaration.. remove it. First try for single one, then update to n numbers... What is mean by upto n polindromes? Hope it helps to correct your program....
4th Apr 2022, 7:43 PM
Jayakrishna 🇮🇳
0
Nth palindrome numbers,I wanna print it till n
4th Apr 2022, 7:55 PM
ANIK
ANIK - avatar
0
as I said, modify code to check a single number of user input, say num = 121 and check is it polindrome are not. On success, instead of user input, run the code, by loop from n = 1 to n numbers... Try the above correction mentioned. Post your update code for further any.. Good luck.
4th Apr 2022, 8:00 PM
Jayakrishna 🇮🇳