((a-b)==c)啥意思#includeint main(){float a; float b; float c;a=4.2; b=3.1; c=1.1;if ((a-b)==c) {printf("相等 ");} else {printf("不相等 ");}}

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 11:32:41
((a-b)==c)啥意思#includeintmain(){floata;floatb;floatc;a=4.2;b=3.1;c=1.1;if((a-b)==c){printf("相等");}els

((a-b)==c)啥意思#includeint main(){float a; float b; float c;a=4.2; b=3.1; c=1.1;if ((a-b)==c) {printf("相等 ");} else {printf("不相等 ");}}
((a-b)==c)啥意思
#include
int main()
{
float a; float b; float c;
a=4.2; b=3.1; c=1.1;
if ((a-b)==c) {
printf("相等 ");
} else {
printf("不相等 ");
}
}

((a-b)==c)啥意思#includeint main(){float a; float b; float c;a=4.2; b=3.1; c=1.1;if ((a-b)==c) {printf("相等 ");} else {printf("不相等 ");}}
(a - b) = 1.1
1.1 = c = 1.1
所以
(a-b)== c 等价于 1.1 == 1.1 等价于 ture
== 这个符号表示 判断两边是否相等

a与b的差值是不是等于c的值