下面程序的运行结果是( )。#include int main ( ){int ch=98;printf("%c\n", ch);return 0;}
查看答案
下面程序的运行结果错误,scanf函数中的格式符应该修改为scanf("%_____", &r);。#include #define PI 3.14int main(){double r;scanf("%f", &r);printf("%2.1f\n", PI*r*r);return 0;}
运行程序,从键盘输入任意实数,输出结果是( )。#include int main( ){ float f, c ;scanf("%f", &f);c=5/9 * (f - 32);printf("%5.1f\n",c);return 0;}
运行程序,输入字母A按回车键,再输入字母B按回车键,输出结果是( )。#include int main ( ){char x,y,z,ch;scanf("%c%c%c%c",&x, &y, &z, &ch);printf("%c\n", z);return 0;}
运行下面程序,输入整数5,输出( ),输入整数-9,输出( )。#include int main(){int x;scanf("%d", &x);if(x<0) x = -x;printf("%d\n", x);return 0;}