Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int n;
- char szWord[999],
- sz_ord[999];
- int szCipher(char *psz2, char *psz1);
- /////////////////////////////////////////////////////////////////////
- int main() //
- {
- scanf("%s", szWord);
- printf("%s\n", szWord);
- n = szCipher(sz_ord, szWord);
- printf(" Len = %d, %s\n", n, sz_ord);
- }
- //////////////////////////////////////////////////////////////////////
- int szCipher(char *psz2, char *psz1) //
- {
- int nLen = strlen(psz1);
- int i = 0;
- for(;i < nLen; i++)
- {
- psz2[i] = psz1[i]-1;
- }
- psz2[i] = 0;
- return nLen;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement