Guest User

Untitled

a guest
Jan 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4. int main()
  5. {
  6.     char x[20] ;
  7.     int i  ;
  8.    
  9.     scanf("%s",&x);
  10.    
  11.    
  12.     for(i=0;i<strlen(x);i++)
  13.     {
  14.      
  15.      
  16.       if(x[i] == 'A' )
  17.        printf("%c",x[i]+24);
  18.       else
  19.        if(x[i] == 'B' )
  20.         printf("%c",x[i]+24);
  21.       else
  22.        printf("%c",x[i]-2);
  23.     }
  24.    
  25.     printf("\n");
  26.    
  27.    
  28.     system("pause");
  29.     return 0 ;
  30. }
Add Comment
Please, Sign In to add comment