<strong>#</strong>include <stdio.h>
int main()
{
int i=2;
switch ( i )
{
case 1<strong>:</strong>
printf("i am in case 1\n");
break;
case 2<strong>:</strong>
printf("i am in case 2\n");
break;
case 3<strong>:</strong>
printf("i am in case 3\n");
break;
default<strong>:</strong>
printf("i am in default\n");
}
return 0;
}
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
You put (Nov 28th 2009):
You put:
Cya.
He put ( Jul 16th, 2004 ):hi,
this is the code for switch:
include
See the problem?
firstPerson
Senior Poster
3,923 posts since Dec 2008
Reputation Points: 841
Solved Threads: 608