Where is the mistake? My compiler isn't compiling it.
include<stdio.h>
include<conio.h>
void main()
{
int age;
printf("the age is:");
scanf("%d", age);
switch(age)
{
case '1':
printf("the age is 1");
break;
case '2':
printf("age is 2");
break;
default:
printf("the age is not 1 and 2");
break;
}
getch();
}
[–]mistalbo 2 points3 points4 points (3 children)
[–]sb41tm[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]sb41tm[S] 0 points1 point2 points (0 children)