Example:
enter : 3-Ehzduh ri wkh Iodpqj Olcdugv
the secret message: Beware of the Flaming Lizards
enter : 4-Evi csy lezmrk JYR
the secret message: Are ou having FUN
Question:
007 has a special watch that can decode secret message... for example, the digit represents how many letter forward is the correct alphabet.we need to write the decryption algorithm for the watch. there will be no numbers in the messages, nor will there be any punctuation.Like in the first example, there is 3, and then "E" is after that... E --->D -->C--> "B", so the decoded message has B for the first letter Write the program.
enter : 3-Ehzduh ri wkh Iodpqj Olcdugv
the secret message: Beware of the Flaming Lizards
enter : 4-Evi csy lezmrk JYR
the secret message: Are ou having FUN
Question:
007 has a special watch that can decode secret message... for example, the digit represents how many letter forward is the correct alphabet.we need to write the decryption algorithm for the watch. there will be no numbers in the messages, nor will there be any punctuation.Like in the first example, there is 3, and then "E" is after that... E --->D -->C--> "B", so the decoded message has B for the first letter Write the program.
