How can I fix all these errors in the code | Sololearn: Learn to code for FREE!

+1

How can I fix all these errors in the code

I'm trying to solve the highest palindromic number problem in project euler. https://code.sololearn.com/cxopWLDzCZYc/?ref=app

9/9/2020 8:40:29 AM

Joseph Oritseweyinmi

4 Answers

New Answer

+3

I've correct your errors, this is your code corrected. https://code.sololearn.com/ceK5zH8wnr5C/?ref=app Thank you because it was a good exercise!!

+2

+1

Is it okay if you take the input as string opposed to a number? or are you obliged to take the input as number?

+1

Some basic errors public static void getpalindrome(int num, rem, sum = 0, temp) Parameter with a default value must be the last parameter. if (getpalindrome) getpalindrome is method, this is not how you call a method. I haven't checked rest of your program.