daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifdef first_case
  2.     printf("typed first_casen");
  3.     #endif
  4.    
  5. #include <stdio.h>
  6. int main()
  7. {
  8.     // your code goes here
  9.     int k=0;
  10.  
  11.     scanf("%d",&k);
  12.     switch(k)
  13.     {
  14.         case 1 :
  15.         printf("case 1n");
  16.         #define first_case
  17.         break;
  18.         case 2 :
  19.          #define second_case
  20.         break;
  21.         case 3 :    
  22.          #define third_case
  23.         break;
  24.         case 4 :
  25.         #define fourth_case
  26.         break;
  27.     }
  28.  
  29.  
  30.     #ifdef first_case
  31.     printf("typed first_casen");
  32.     #endif
  33.     #ifdef second_case
  34.     printf("typed second_casen");
  35.         #endif
  36.  
  37.     #ifdef third_case
  38.     printf("typed third_casen");
  39.         #endif
  40.     #ifdef fourth_case
  41.     printf("typed fourth_casen");
  42.     #endif
  43.  
  44. }
RAW Paste Data
Top