七、ASCII

    xiaoxiao2021-04-18  86

    Problem Description Since all we know the ASCII code, your job is simple: input numbers and output corresponding messages.

    Input The first line contains one integer T (1<=T<=1000). The input will contain T positive integers separated by whitespaces (spaces, newlines, TABs). The integers will be no less than 32.

    Output Output the corresponding message in just one line. Warning: no extra characters are allowed.

    Sample Input

    13 72 101 108 108 111 44 32 119 111 114 108 100 33

    Sample Output

    Hello, world!

    #include<iostream> using namespace std; int main() { int n,j,i,c; char a[1000]; cin>>n; i=0; while(i<n) {cin>>c;a[i++]=c;} for(j=0;j<i;j++) cout<<a[j]; return 0; }
    转载请注明原文地址: https://ju.6miu.com/read-674554.html

    最新回复(0)