下面程序实现输出从“!”开始的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

有下列程序:A.输出字符a的ASCⅡ码B.输出字符C的ASCⅡ码C.输出字符CD.程序出错

下面程序的功能是:从键盘输入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; }

请编写Python程序完成以下要求: 编写程序提示用户从键盘输入3个整数,求出其中的最小值并输出。 (得分点提示:程序的可读性、功能是否正确、输入输出是否有提示信息)

已知字符‘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; }