Hello i just started to learn C and im trying to make a code that takes a value of a day month and a year in numbers and it shows the month in words and limits the days but i cant succsed to do it if you can please tell me what im doing wrong
#include <stdio.h>
int main()
{
int a,b,c;
//day month year
scanf("%d%d%d",&a,&b,&c);
switch(b,a<=31)
{
case 1: printf("%d January %d",a,c+2000);
break;
case 2: printf("%d February %d",a,c+2000);
break;
case 3: printf("%d March %d",a,c+2000);
break;
case 4: printf("%d April %d",a,c+2000);
break;
case 5: printf("%d May %d",a,c+2000);
break;
case 6: printf("%d Juny %d",a,c+2000);
break;
case 7: printf("%d July %d",a,c+2000);
break;
case 8: printf("%d August %d",a,c+2000);
break;
case 9: printf("%d September %d",a,c+2000);
break;
case 10: printf("%d October %d",a,c+2000);
break;
case 11: printf("%d November %d",a,c+2000);
break;
case 12: printf("%d December %d",a,c+2000);
break;
default : printf("One of your numbers are wrong");
}
}