填空题
以下程序的功能是:将值为三位正整数的变量X中的数值按照个位、十位、百位的顺序拆分并输出。请填空
#include<stdio.h>
main()
int x=256;
printf("%d-%d-%d\n",______,x/10%10,x/100);
【参考答案】
x%100%10
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的输出结果是______。 #include<stdio.h> #include<string.h> char*fun(char*t) char*p=t; return(p+strlen(t) 2); main() char*str= abcdefgh ; str=fun(str); puts(str);
点击查看答案&解析
填空题
以下程序的功能是从键盘输入若干学生的成绩,并输出最高成绩和最低成绩,当输入负数时结束。请填空。 #include <stdio.h> main() float x,amax,amin; scanf( %f ,&x); amax=x; amin=x; while( ) if(x>amax)amax=x; else if( ) amin=x; scanf( %f ,&x); printf( n amax=%f n amin=%f n ,amax,amin);
点击查看答案&解析
相关试题
在使用报表向导创建报表时,如果数据源包括...