Advertisement
momo2345

2.no

Oct 3rd, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5.     char seq[64];
  6.  
  7.     gets(seq);
  8.     int l=strlen(seq);
  9.     for(int i=0;i<l;i++){
  10.         if(seq[i]=='z' ) seq[i]='a';
  11.          else if(seq[i]=='Z') seq[i]='A';
  12.          else if(seq[i]=='9') seq[i]='0';
  13.         else seq[i]=seq[i]+1;
  14.     }
  15.     puts(seq);
  16. }
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement