编写函数“判断整数x的绝对值是否大于5,如果大于5,则输出True,否则输出false。
来源:百度知道 编辑:UC知道 时间:2024/05/04 08:01:05
#include<math.h>
#include<stdio.h>
void main()
{
int x;
scanf("%d",&x);
char t[]="true",f[]="false";
printf("%s\n",(abs(x)>5)?t:f);
}
function istrue(x as long) as bloon
if x>5 then istrue = true
elseif x<=5 then istrue = false
elseif msgbox "错误"
end if
end function
设A1=x,那么B1=if(ABS(x)>5,"true","false")
有个在线的高手么?