Calendar - Online Code

Description

BY THIS CODE YOU CAN FIND " DAY" AND "MONTH" .CODING IS VERY EASY TO WRITE.

Source Code

/*calendar*/

#include<stdio.h>

#include<string.h>

#include<conio.h>

int getNumberOfDays(int month,int year)

{

   switch(month)

   {

      case 1 : return(31);

      case 2 : if(year%4==0)

	
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

Sashank Mishra on 2010-09-16 03:46:50 wrote,

This code has 4 warnings and 8 errors when compiled in Turbo C++.
Check it.

Dwarika Chandra on 2010-09-20 04:33:37 wrote,

@Sashank,

you can remove those errors very easily, these are very simple mistakes.