作业帮 > 综合 > 作业

float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/07/17 01:14:31
float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score是不是整数怎么办
float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score
double score;
if((int)x==x)
printf("%f是整数",x);