this is an assignment for my class and it is supposed to be a calendar but i cant figure out how th make the spaces for the day that the user chooses. any help would be appreciated
include <stdio.h>
main()
{
int i, n, day;
printf("enter number of days in the month:");
scanf("%d",&n);
printf("Enter starting day of the week (1=Sun, 7=Sat):");
scanf("%d",&day);
for (i=1; i <= n ; i++)
{
if (i==(9-day) ||i==(16-day) || i==(23-day) || i==(30-day))
{
printf("\n");
//day++;
}
printf("%3d", i);
}
return 0 ;