close

【題目】 https://zerojudge.tw/ShowProblem?problemid=a001


【C】

#include<stdio.h>
#define SIZE 9999
int main(void){
    char str[SIZE];
    
    while(scanf("%s",str)!=EOF){
        printf("hello, %s\n",str);
    }
    return 0;
}

【C++】

#include<iostream>
#include<cstring>
using namespace std;
int main(){
    string str;
    while(cin>>str){
        cout<<"hello, "<<str<<endl;
    }
    return 0;
}

【Python】

str = input()
print ("hello,", str)

 

 
arrow
arrow

    jane8366608 發表在 痞客邦 留言(0) 人氣()