k.jahangir kumar
javaprograms
0 Answer(s)      3 years and 9 months ago
Posted in : Java Beginners

a message is to be conveyed by adding 5 to the ASCII code of characters in the statement given below.write a program to print any given string in the coded form

sample inpu:

SANIA MIRZA IS A SENSATIONAL TENNIS STAR.

SAMPLE OUTPUT:

ORIGINAL TEXT: SANIA MIRZA IS A SENSATIONAL TENNIS STAR. ENCODED TEXT: XFSNF RNWEF NX F XISXFYNTSFQ YJSSNX XYFW

YOUR program should work for any given input string

Advertisement
View Answers