Question: Write a program in C that accepts a string from the user. Then call a function called encrypt that will receive a string as a

Write a program in C that accepts a string from the user. Then call a function called encrypt that will receive a string as a parameter from the main function. The encrypt function changes each value of a string by adding 3 to it. For example

If string = I am happy ,

then the encrypt function will convert it to

encrypt string = L#dp#kdss|

Now write a function called decrypt that will receive encrypted string as parameter, it will recover the original string by subtracting 3 from each value of a string.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!