Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.82 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <stdbool.h>
  4. #include <conio.h>
  5.  
  6. int main()
  7. {
  8.     int i;
  9.     char h;
  10.     int umwandlung;
  11.     char wdh;
  12.  
  13.     for (i=66; i<=90; ++i)
  14.     {
  15.         if(i==69 || i==73 || i==79 || i==85)
  16.         {
  17.             continue;
  18.         }
  19.         char c=(char)i;
  20.         printf("%c %i \n", c, i);
  21.     }
  22.  
  23.     for (i=98; i<=122; ++i)
  24.     {
  25.         if( i==101 || i==105 || i==111 || i==117)
  26.         {
  27.             continue;
  28.         }
  29.         char c=(char)i;
  30.         printf("%c %i \n", c, i);
  31.     }
  32.     do{
  33.     printf("Bitte grossbuchstabe eingeben \n");
  34.     h = getche();
  35.     printf("\n");
  36.     umwandlung = h + 32;
  37.  
  38.     printf("%c \n", (char) umwandlung);
  39.     printf("willst du noch j fuer ja n fuer nein \n");
  40.     wdh = getche();
  41.     } while( wdh=='j' );
  42.     return 0;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement