题目内容

运行下面程序,输入整数5,输出( ),输入整数-9,输出( )。#include int main(){int x;scanf("%d", &x);if(x<0) x = -x;printf("%d\n", x);return 0;}

查看答案
更多问题

运行下面程序,输入25,输出( ),输入-81,输出( )。#include #include int main(){double x;scanf("%lf", &x);if(x<0) printf("%5.1f\n", sqrt(-x));else printf("%5.1f\n", sqrt(x));return 0;}

运行下面程序,输出结果是( )。#include int main(){int a=5, b=0, c=0;if(a=b+c)printf("YES\n");else printf("NO\n");return 0;}

运行下面程序,输出结果是( )。#include int main(){int a=5,b=1,c=1;if(a>b+c){ if(b+c) printf("YES\n"); }else printf("NO\n");return 0;}

运行程序,输入5,输出( );输入6,输出( )。#include int main(){int x, y;scanf("%d", &x);y=x>5 ? x+2 : x-2;printf("%d\n", y);return 0;}

答案查题题库