13

include <studio.h>
int year;
int main(){
if (year==2016){}
else{
printf("Happy %d!!",year);
be happy;
}
return 0;
}

Comments
  • 0
    While that works, maybe make year volatile just in case.... Happy new year though!
  • 16
    Should be #include <stdio.h>, year isn't initialized anywhere, "be happy;" isn't a valid statement, and your print command could probably do with a trailing newline ("\n"). Also, why not just an "if(year!=2016)" instead of having an empty if block in front of an else block?

    4/10, see me after class.
  • 0
    Well that will give some compile errors, but happy new year to you buddy!
  • 0
    Oh, come on, I was improvising 😅, it is not so bad. By the way, happy new year!!
  • 0
    *stdio.h
  • 0
    @pbhoiwala The autocorrection
Add Comment