Can anyone help me with this and tell me why my program keeps telling me the values are incorrect? My code runs and there are no bugs. However if I enter a high temperature of 20 and a low temperature of 10, the printf statement keeps coming up saying the value is incorrect. But it shouldn’t be because I said that if high is greater than 40 or low is less than -40 or high is greater than low! Can anyone help me? Thank you.
#define NUMS3 
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int high, low;
int main(void)
{ 
    printf("---=== IPC Temperature Analyzer ===--- \n");
    for (int i = 1; i < 4; i++) 
    {
        printf("Enter the high value for day %d:", i);
        scanf("%d", &high);
        printf("Enter the low value for day %d:", i);
        scanf("%d", &low);      
        while (high > 40 || low < -40 || high < low); 
        {
            printf("Incorrect values, temperatures must be in the range "
                   "-40 to 40, high must be greater than low.\n");
        }
    }
    return 0;
}
 
     
    