float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score是不是整数怎么办
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/26 23:37:11
float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score是不是整数怎么办
double score;
if((int)x==x)
printf("%f是整数",x);
收录互联网各类作业题目,免费共享学生作业习题
慧海网手机作业共收录了 千万级 学生作业题目
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/26 23:37:11
float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score是不是整数怎么办
double score;
if((int)x==x)
printf("%f是整数",x);