Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. #define KEY 13
  3.  
  4. void main(){
  5.  
  6. while( true ){
  7.  
  8.     char text = getchar();
  9.    
  10.     if( text == '\n' ){
  11.         break;
  12.         }
  13.     if(text > 109){
  14.         text = text - 58;
  15.     }
  16.     else if(text > 77){
  17.         text = text - 26;
  18.     }
  19.     text = text + KEY;
  20.     putchar(text);
  21. }
  22.    
  23.     printf("\n\n");
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement