#include <stdio.h>
int main()
{
int start_month;
int start_day;
int num_appointments;
int days_of_appointments;
int start_date;
int days_in_month[] = {31,28,31,30,31,30,31,31,30,31,30,31};
start_month = printf("Enter the month of the first appointment (Enter January as 1):\n");
scanf("%d", &start_month);
start_day = printf("Enter the day of the first appointment:\n");
scanf("%d", &start_day);
num_appointments = printf("Enter the number of appointments:\n");
scanf("%d", &num_appointments);
start_date = (start_month,"/",start_day);
days_of_appointments = (start_date + 7 - days_in_month[]);
printf("You will have appointments on:%d\n", days_of_appointments);
return 0;
}
Thank you

New Topic/Question
Reply



MultiQuote



|