#include<stdio.h>
int main()
{
int age , marks;
printf("enter your age\n" ,age );
scanf("%d" , &age);
printf("enter your marks\n" , marks);
scanf("%d" , &marks);
switch (age)
{
case 3:
printf("your age is 3\n");
switch (marks)
{
case 45:
printf("your marks are 45\n");
break;
default:
printf("your marks are not 45");
break;
}
break;
default:
printf("your age is not 3");
break;
}
return 0;
}
No comments:
Post a Comment