QUOTE(_net @ 28 Sep, 2007 - 10:36 AM)

Have you started anything? You gotta attempt to do it first.
MissyMykie
...i only have this code..It will not run!..i dont know why!..Its not the correct code for my assignment..This is only the code that I made still!.. It has an error!..Im using TURBO C!..
I dont know how to begin with my assignment!..
#include<stdio.h>
void printMonth (int startDay, int days);
int main (void)
{
printfMonth(2,29);
return 0;
}
/*======printMonth===========*/
void printMonth (int startDay, int days)
{
int weekDay;
int dayCount = 0;
{
printf("Sun Mon Tue Wed Thu Fri Sat\n");
printf("--- --- --- --- --- --- ---\n");
for (weekDay= 0; weekDay < startDay; weekDay++)
{printf(" ");}
for (int dayCount = 1; dayCount <= days; dayCount++)
{
if (weekDay > 6)
{
printf("\n");
weekDay = 1;
}
else
weekDay++;
printf("%3d", daycount);
}
printf("\n--- --- --- --- --- --- ---\n");
return;
}}