【題目】 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)
請先 登入 以發表留言。