从键盘输入大写字母A按回车键,程序运行结果是( )。#include int main ( ){char ch;scanf("%c", &ch);ch=ch+32;printf("%d\n", ch);return 0;}
查看答案
从键盘输入大写字母D按回车键,程序运行结果是( )。#include int main ( ){char ch;ch=getchar();printf("%d\n", ch);return 0;}
下面程序的运行结果是( )。#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;}