#include<stdio.h>
int main(void)
{
int num;
int week;
int days;
printf("enter a day\n");
scanf_s("%d\n", &num);
while (num <= 0)
{
printf("your input is wrong, try again");
num++;
while (num > 0)
week = num / 7;
days = week * 7 - num;
printf("%d days are %d week and %d days\n", &num, &week, &days);
}
return 0;
}
I try to make a loop if the num<=0 then the program will back to at begin, but it doesn't allow me to press any bottoms.