The computer department of the Agency of International Espionage is trying to decode intercepted messages. The agency's spies have determined that the enemy encodes messages by first converting all characters to their ASCII values and then reversing the string.
For example, consider A_z(the underscope is just to highlight the space).
The ASCII values of A,
Write a program which reads a coded message and decodes it. The coded message will not exceed 200 characters. It will contain only alphabets (A....Z, and a.....z) and spaces. ASCII values of A....Z are 65.....90 and those of a.....z are 97...122. Test your program for the following data and some random data.
INPUT: ENCODED MESSAGE : 2312179862310199501872379231018117927 OUTPUT: THE DECODED MESSAGE: Have a Nice Day
Have something to say? Log in to comment on this post.