Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2.  
  3. void fred(int x)
  4. {
  5.    switch (x)
  6.    {
  7.       case 1: printf("1\n"); return;
  8.       case 2: printf("2\n"); break;
  9.       case 3: printf("3\n"); return;
  10.    }
  11.  
  12.    printf("out\n");
  13. }
  14.  
  15. int main()
  16. {
  17.    fred(1);
  18.    fred(2);
  19.    fred(3);
  20.  
  21.    return 0;
  22. }    
  23.  
  24. /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/
  25.