<mosaic.cnfolio.com>
PROGRAM
  1. /*                            PSEUDOCODE
  2. START
  3. VARIABLE   length_of _the_cipher_key
  4. VARIABLE   cipher_key_text
  5. VARIABLE       length_of_the_plain_text
  6. VARIABLE       plain_text
  7. VARIABLE   STEP
  8.  
  9.                         //Input line 1
  10. Displace "Indicating the length number:" length_of _the_cipher_key
  11.       // ERROR CODE
  12.    IF length_of _the_cipher_key between 2 to 16
  13.       output error enter length_of _the_cipher_key between 2 to 16 message
  14.       END
  15.  
  16.  
  17.                         //INPUT LINE 2
  18.  
  19.    If cipher_key_text = the same as character number as length_of _the_cipher_key
  20.    output displace cipher_key_text
  21. Displace "Indicating the length_of_the_plain_text:" length_of_the_plain_text
  22.    IF length_of_the_plain_text between 2 to 16
  23.       output error enter length_of_the_plain_text between 2 to 16 message
  24. FOR LOOP
  25.    IF STEP = length_of _the_cipher_key between 2 to 16
  26.     END               //INPUT LINE 3
  27.                        
  28.           for loop
  29.           if step 1 substitute cipher_key_text with cipher_key_text
  30.           displays step 1 substitute cipher_key_text with cipher_key_text
  31.           end
  32.                        
  33.                        
  34.                        
  35.                         //INPUT LINE 4
  36.  
  37. FOR LOOP
  38.    IF plain_text [array] shows the same as character number as length_of_the_plain_text
  39.    output DISPLAY plain_text
  40. END
  41.                      
  42.                         // substitution
  43. FOR LOOP
  44.    IF step 1 substitute cipher_key_text with cipher_key_text
  45.    replace the first cipher_key_text the same character as plain_text
  46.    output DISPLAY step 1 substitute cipher_key_text with cipher_key_text and plain_text
  47. END
  48.  
  49.                         // error code
  50.  
  51. IF length_of _the_cipher_key EQUAL alphabet
  52.       output error only number can be enter
  53. IF ELSE
  54.     length_of _the_cipher_key equal to space
  55.     output error only number can be enter
  56. IF ELSE
  57.    Length_of _the_cipher_key equal to high case characters
  58.     output error only number can be enter
  59. END
  60.  
  61.  
  62. END*/
  63.  
  64. /*         START OF THE PROGRAM            */
  65.  
  66.  
  67. #include <stdio.h>
  68. #include <string.h>
  69. #include <stdlib.h>
  70.  
  71. char *lengthtext = "Indicating the length number:";
  72.  
  73.    
  74.    int main ( void )
  75. {
  76.    puts(lengthtext);
  77.    int numberlength;
  78.    scanf( "%d",&numberlength);
  79.    printf("%d\n", numberlength);
  80.    
  81.    char length_of_the_cipher_key;
  82.    char text;
  83.     length_of_the_cipher_key = getchar();
  84.     text = getchar();
  85.     scanf( "%c\n",&length_of_the_cipher_key,"%c\n",&text);
  86.    
  87.     int step;
  88.       for (step = 1; step <= numberlength; step++){
  89.       printf("step %d substitute %c with %c\n",step,text,length_of_the_cipher_key);
  90.     
  91.       if ( numberlength ==2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
  92.       {
  93.          
  94.          printf("%c", length_of_the_cipher_key);
  95.          }
  96.       /*
  97.      
  98.       int i,j
  99.      
  100.       for ( i=0; i< numberlength; i++);
  101.       for ( j=0; j< length_of_the_cipher_key,text; j++);
  102.        if ( word ==length_of_the_cipher_key,text);
  103.           (   length_of_the_cipher_key,text== word +1)
  104.      
  105.       printf ( "step %d substitute %c with %c\n",step,text,length_of_the_cipher_key)}*/
  106.    char word [16];
  107.       gets(word);
  108.       puts(word);
  109.      
  110.       }
  111.      
  112.    
  113.    return 0;
  114.     }