[ create a new paste ] login | about

Link: http://codepad.org/u0DP78ad    [ raw code | output | fork ]

C, pasted on Mar 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>

void main(void) {
   int a = 2;
   int b = 0;

   switch(a) {
      case 1:
      if(b==1) {
         puts("a");
         break;
   case 2:
      puts("b");
      break;
   default:
      puts("c");
      break;
   }
   }
}


Output:
1
b


Create a new paste based on this one


Comments: