Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.75 KB | None | 0 0
  1. /*
  2. ** lol.c for  in /home/sin
  3. **
  4. ** Made by SiN
  5. ** Login   <sin@epitech.net>
  6. **
  7. ** Started on  Sat Oct 25 18:16:53 2014 sin
  8. ** Last update Fri Oct 31 09:55:47 2014 sin
  9. */
  10.  
  11. #include <stdio.h>
  12.  
  13. int
  14. main(int ac, char **av){
  15.     if (ac == 1)
  16.         goto end;
  17.     int value = atoi(av[1])
  18.     switch(value){
  19.     case 0:
  20.     printf("-- %d\n", value);
  21.     case 1:
  22.     printf("++ %d\n", value);
  23.     case 2:
  24.     printf("// %d\n", value);
  25.     case 3:
  26.     printf("** %d\n", value);
  27.     case 4:
  28.     printf(">> %d\n", value);
  29.     case 5:
  30.     printf("<< %d\n", value);
  31.     case 6:
  32.     printf("|| %d\n", value);
  33.     case 7:
  34.     printf(")) %d\n", value);
  35.     case 8:
  36.     printf("(( %d\n", value);
  37.     case 9:
  38.     printf("== %d\n", value);
  39.     }
  40.     end:
  41.       return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement