Write a function cipher(plaintext, n) to shift all characters in a string of text. Your function should take 2 parameters, the plaintext to shift (a string) and the shift key n (an integer). Set up an accumulator variable (suggested name: ciphertext) in which to accumulate the result. Use a definite loop with the accumulator pattern to go through all characters in plaintext.

Relax

Respuesta :

Answer:

I am attaching a doc file

Explanation:

The file contains the Python and C++ program for this and also the screenshots of the program and the outputs.

Ver imagen mahamnasir