C - проверка ввода на символ
собственно проблема: В devC все компилируется как должно. В других компиляторах, просто бесконечно пишет Wrong Format! Хотя, с другими условиями проверки все нормально.
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <ctype.h>
int main()
{
double x;
do{
printf("input x:");
scanf("%lf",&x);
if(x<0 || fmod(x,90) == 0 || x > DBL_MAX || isalpha(x) == 1){
printf("Wrong Format!Try again!\n");
continue;
}
} while(x<0 || fmod(x,90) == 0 || x > DBL_MAX || isalpha(x) == 1);
printf("The maximum value is - %g", DBL_MAX);
}