网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下面程序实现输出从“!”开始的91个ACCII字符及码值,要求每行输出7项。请完成程序。
include<iostream.h>
void main( ) {
char c= "!";
int d , n=1;
do {
while (n<=7) {
d=c;
cout<<c<< "=" <<d<<“”;
c++
n++;
}
cout<< "\n" ;
【 】;
} while(c<= '!' +90)
cout<< "\n" ;
}
参考答案
更多 “ 下面程序实现输出从“!”开始的91个ACCII字符及码值,要求每行输出7项。请完成程序。include<iostream.h>void main( ) {char c= "!";int d , n=1;do {while (n<=7) {d=c;cout<<c<< "=" <<d<<“”;c++n++;}cout<< "\n" ;【 】;} while(c<= '!' +90)cout<< "\n" ;} ” 相关考题
考题
有以下程序(注:字符a的ASCIl码值为97) } 程序运行后的输出结果是( )。A.789B.abcSXB
有以下程序(注:字符a的ASCIl码值为97)}程序运行后的输出结果是( )。A.789B.abcC.7890D.979899
考题
下面程序的功能是:从键盘输入10个字符,输出其中数字字符。请完善程序。 #include <stdio.h> int main() { int i; char c; for(i=1;i<=10;i++) { c=getchar(); if(c< '0' ||c> '9') _________ ; putchar(c); } return 0; }
考题
已知字符‘7’的ASCII码值是55,请写出如下程序的输出结果: #include <stdio.h> int main() { char c=‘5’ ; printf(“%d",c+3); }
考题
下面程序的从键盘输入10个字符,输出其中数字字符。请完善程序。 #include <stdio.h> int main() { int i; char c; for(i=1;i<=10;i++) { c=getchar(); if(c< '0' ||c> '9') _________ ; putchar(c); } return 0; }
考题
15、已知字符‘7’的ASCII码值是55,请写出如下程序的输出结果: #include <stdio.h> int main() { char c=‘5’ ; printf(“%d",c+3); }
考题
下面程序的功能是:从键盘输入10个字符,输出其中数字字符。请完善程序。 #include int main() { int i; char c; for(i=1;i<=10;i++) { c=getchar(); if(c< '0' ||c> '9') _________ ; putchar(c); } return 0; } 下面程序的功能是:从键盘输入10个字符,输出其中数字字符。请完善程序。 #includeint main() { int i; char c; for(i=1;i<=10;i++) { c=getchar(); if(c< '0' ||c> '9') _________ ; putchar(c); } return 0; }
考题
从大到小依次输出250到100之中所有个位数为6或7的数,要求每行输出6个数据,每列左对齐。(注意:程序有1个空,请完善程序,不要添加多余的字符与空格) #include<stdio.h> int main() { int i,k=0; for(i=250;i>=100;i--) if(i % 10==6||i % 10==7) { printf("%dt",i); k++; if()printf("n"); } printf("n"); return 0; }
热门标签
最新试卷
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)