#include
int main(void) {
double x,y,z;
int a,b,c;
printf("x = ");
scanf("%lf", &x);
x = x*10;
y = modf(x,&z);
a = (int)z%10;
x = x*10;
y = modf(x,&z);
b = (int)z%10;
x = x*10;
y = modf(x,&z);
c = (int)z%10;
if (a*b*c == 0) printf("Yes");
else printf("No");
return 0;
}
Пример:
x = 3.40249
Yes