gfazioli
11/4/2017 - 9:58 AM

Merry Christmas

#include <stdio.h>

/**
 * Return 1 when is Christmas
 *
 * @from       Giovambattista Fazioli
 * @to         Namecheap Cloud Team
 * @required   Be happy, relax and enjoy
 * @date       2016-12-25
 *
 * @param      (int) month The month number (1 based).
 * @param      (int) day   The day number.
 *
 */
int isXMas( int month, int day )
{	
  return ( month == 12 && day == 25 );
}

int main(int argc, char *argv[]) 
{
  // testing
  for( int i = 1; i < 13; i++ ) 
  {
	printf( "Is xmas today? %s\n", ( isXMas( i, 25 ) ? "Yes" : "No" ) );
  }	
}