+ 6
Where is wrong in this code?
I get 3 out of 6 in code coach https://code.sololearn.com/cEk5CxqIUr9M/?ref=app
7 Antworten
+ 5
+ 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
+ 4
Most Welcome🤴🌹Cute Princess 🌹💐 .
+ 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
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 ☺️
0
ممكن مساعده