Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
write a prog. in kava that ask user to enter a no. and print it out conversely , which its converse must be the same form as the no. before conversing it ..
ex:
121 when i converse it , it will be the same no.

and if will not ; if i enter a no. and the converse of it will change the form , the prog. should print false

ex:
123 is 321
Posted
Updated 28-Oct-14 13:17pm
v2
Comments
PIEBALDconsult 28-Oct-14 19:13pm    
You mean "reverse"? Actually it sounds like you want to test for a palindrome, that's a very common first-year assignment.
http://en.wikipedia.org/wiki/Palindrome

1 solution

Did you try anything? If yes what is the Problem you have?
Think about create a second string in reverse order and compare it to the original.

Not a solution that can be used imediatelly, but maybe Shows a Little bit about the logic behind the "Problem".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900