马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
This is the first problem for test. Since all we know the ASCII code, your job is simple: Input numbers and output corresponding messages.
输入
The input will contain a list of positive integers separated by whitespaces(spaces, newlines, TABs). Please process to the end of file (EOF). The integers will be no less than 32.
输出
Output the corresponding message. Note there is NOT a newline character in the end of output.
样例输入
72 101 108 108 111 44
32 119 111 114 108 100 33
样例输出
Hello, world!#include <stdio.h>
main()
{
int a[20];
int n;
int m;
int s=0;
int b;
printf("请输入你想输入的字符个数");
scanf("%d",&n);
printf("请输入你想输入的数字,请不要超过20个");
for( b=0;b<n;b++)
{
scanf("%d",&m);
a[s]=m;
s++;
}
for(b=0;b<n;b++)
{
printf("%c",a[b]);
}
}
|