Code:
#include<stdio.h>
#include<conio.h>
#include <string.h>
int main()
{
char month[12];
clrscr();
printf("input month:");
scanf("%s",month);
if (strcmp(month,"january") == 0)
printf("new year");
else if (strcmp(month,"december") == 0)
printf("xmas");
else
printf("ordinary month");
getch();
return(0);
}
Main has no datatype
Missing semicolon on line 6
Missing end parenthesis on line 10
Extra semicolon on line 11
Missing semicolon on line 14
Invalid comparisons all throughout
Excessive laziness in poster rothj0hn
Next time use your compiler... or geez maybe even your eyes.