daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main (){
  4.     char text[] = "AFIGBYYXRCPMQBFCQCPFZMCBPQPTQEUPTPQPUCNMUSGTTITSRCPMQBFCQCFCTVRCIDTSPGYZTPQPSTUYJGBLXUHUEKOYZUEOLORCTQPGDLCEZUBQIOXYZSCEFOHPJTTVIXQBQCUZNTMQGPXEZMXAOPTVIBDBILYSFOEYOPNMUATVDIGRAMVMFPCDQICBRHMHZLFCOUTSTXGIOXPSHTTRHTZPEDQCGICBRCPMQPRHQECBEYQBPFRDXQPQTQXQQPOFZSHCRIZHFODEBZIBRGBEGT";
  5.     int i =0;
  6.     int count =0;
  7.     while(true){
  8.         //printf("%c", text[i]);
  9.         if (text[i] !=NULL)
  10.             count++;
  11.         else
  12.             break;
  13.         i++;
  14.     }
  15.  
  16.     printf("\n%d\n", count);
  17.     char ch;
  18.     for(int h =0;h<=26;h++){
  19.         printf("\n%d\n", h);
  20.         for (int i=0;i<count;i++){
  21.             ch = text[i]+h;
  22.             if (ch > 'Z')
  23.                 ch -= 26;
  24.             printf("%c", ch);
  25.         }
  26.         printf("\n");
  27.     }
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top