Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<ctype.h>
- char *encrypt(char *input);
- int main()
- {
- char *instructions= "Deliver the package to Brooklyn";
- printf("Here are your secret instructions:\n%s\n",encrypt(instructions));
- return(0);
- }
- char *encrypt(char *input)
- {
- char output[122];
- int x=0;
- while(*input)
- {
- if(isalpha(*input))
- output[x]= *input+1;
- else
- output[x]=*input;
- input++;
- x++;
- }
- return putout;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement