Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Converting STRING to INTEGER/REAL....
I need to write a program that can find and print all the 3-digit palindromic prime numbers. Palindromic numbers are numbers that are the same forward and backword.
Since there is no pattern in these numbers, I'm just gonna test every number from 100 to 999 with a FOR-TO-DO loop. I need to test palindromes of each other.
So basically is there any way to give a variable a string value such as '343' and convert it to the integer, 343 or the real, 343.0?
Any help would be greatly appreciated.