can someone help me to make this program look like this.
example
[img]http://www.ljzsoft.com/xlcalendar/sample/calendar_one_sheet_2x6.gif[/img]


because some of the year cant display.

#include<stdio.h>
#include<conio.h>

int Calendar(int daycode,int year,int leapyear);

int main(void)
{
int year;
int daycode;
int leapyear;

for(year=1994;year<2000;year++)
{

leapyear=(!(year%4)&&(year%100))||!(year%4);
daycode=((year-1)*365+((year-1)/4)-((year-1)/100)+((year-1)/400)+1)%7;
Calendar(daycode,year,leapyear);
}
}
int Calendar(int daycode,int year,int leapyear)
{
int month;
int skip;
int day;
int daysinmonth;


for(month=1;month<=12;month++)
{
skip=0;
day=1;
if (month==1||month==3||month==5||month==7||month==8||month==10||month==12)
   daysinmonth=31;
else if(month==4||month==6||month==9||month==11)
	 daysinmonth=30;
	 else if(month==2)
	  if(leapyear==1)
	  daysinmonth=29;
	  else if(leapyear==0)
		   daysinmonth=28;
		   printf("\n***************************");

switch(month)
{
case 1: printf("\n\n\t%d\n\nJANUARY			   %d",year,year);break;
case 2: printf("\nFEBRUARY			  %d",year);break;
case 3: printf("\nMARCH				 %d",year);break;
case 4: printf("\nAPRIL				 %d",year);break;
case 5: printf("\nMAY				   %d",year);break;
case 6: printf("\nJUNE				  %d",year);break;
case 7: printf("\nJULY				  %d",year);break;
case 8: printf("\nAUGUST				%d",year);break;
case 9: printf("\nSEPTEMBER			 %d",year);break;
case 10: printf("\nOCTOBER			   %d",year);break;
case 11: printf("\nNOVEMBER			  %d",year);break;
case 12: printf("\nDECEMBER			  %d",year);

}
printf ("\nSUN MON TUE WED THU FRI SAT\n");

while(day<=daysinmonth)
{
  while(day<=daysinmonth)
  {
	  while(skip<daycode)
	  {
	printf("	");
	skip=skip+1;
	  }
	  printf("%2d  ",day);
	  day=day+1;
	  if(((day+daycode)%7)==1)
	  {
	printf("\n");
	  }
  }
}
daycode=(daycode+daysinmonth)%7;
}
}

help me w/ this people.
please

First, format your code.
Second, explain what you need help with. Don't make us guess.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.