A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Palindromic Number in Julia page! Here, you'll find the source code for this program as well as a description of how the program works.
function err()
println("Usage: please input a non-negative integer")
end
function palindrome_check(n)
new_num = 0
original = n
while (n > 0)
digit = n % 10
new_num = new_num * 10 + digit
n รท= 10
end
if(new_num == original)
return "true"
else
return "false"
end
end
try
n = parse(Int, ARGS[1])
if (n >= 0)
println(palindrome_check(n))
else
err()
end
catch e
err()
end
Palindromic Number in Julia was written by:
If you see anything you'd like to change or update, please consider contributing.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.