Hi guys I got this program I am working on and it's not yet functioning as I would like it to. Currently the program counts down form 16 to 5, I would like a User to be able to enter a number between 16 and 5 and and have it count down from the User input number. Any help would be great thanks.
Code:
#include <stdio.h>
#define MAX 17
int main(void)
{
int count = MAX + 1;
while (--count > 5) {
printf("%d ", count - 1);
}
fflush(stdin);
printf("\n\nPress Enter to continue.\n");
getchar();
return 0;
}