Im trying do-while condition and there's another while inside of it, im having a problem in "do you want to continue?", its skipping it.. Is there anything wrong to my codes?
do {
printf("\nEnter the start value:");
scanf("%d", &start_value);
printf("\nEnter the end value:");
scanf("%d", &end value);
printf("\nEnter the interval value:");
scanf("%d", &interval_value);
while (start_value <= end_value) {
printf("%d ", start_value);
start_value = start_value + interval_value;
}
printf("\nDo you want to continue?");
scanf("%c", &answer);
} while (answer != 'N' || answer != 'n');