+ 6

Where is wrong in this code?

I get 3 out of 6 in code coach https://code.sololearn.com/cEk5CxqIUr9M/?ref=app

29th Nov 2020, 7:39 AM
🤴🌹Cute Princess 🌹💐
🤴🌹Cute Princess  🌹💐 - avatar
7 odpowiedzi
29th Nov 2020, 10:31 AM
🤴🌹Cute Princess 🌹💐
🤴🌹Cute Princess  🌹💐 - avatar
+ 4
You not using int x parameter value, and not returning Boolean value beacuse your return type is bool. So i am added one variable "temp" And storing value of x and comparing that value to reverse number Value. Otherwise all things are right 👍👍. All the Best 👍. https://code.sololearn.com/c4VnEat6b1S2/?ref=app
29th Nov 2020, 9:41 AM
Mohammed Qadir Khan
Mohammed Qadir Khan - avatar
29th Nov 2020, 11:31 AM
Mohammed Qadir Khan
Mohammed Qadir Khan - avatar
+ 3
1. Remove line 7 and 8 after that and assign num=x 2. After the while loop add if statement to check rev is equal to x .If yes return true else return false. And int n not required inside function. For explanation see BEGGINER answers
29th Nov 2020, 7:56 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar
0
Your function is type of bool it's take only true and false valu not any int You need to change that either wish try to simple way ☺️
30th Nov 2020, 6:21 PM
Aadesh Mishra
Aadesh Mishra - avatar
0
ممكن مساعده
30th Nov 2020, 11:53 PM
Eng-Baker Ahmad Hijjawe
Eng-Baker Ahmad Hijjawe - avatar