Test Message

a001: 哈囉

內容

學習所有程式語言的第一個練習題
請寫一個程式,可以讀入指定的字串,並且輸出指定的字串。


輸入

輸入指定的文字

world
C++
mary

輸出

輸出指定的文字

hello, world
hello, C++
hello, mary


解題思路

簡單的輸入輸出


完整程式碼

AC (2ms, 88KB)
#include <stdio.h>

char s[1000];

int main()
{
while (scanf(" %s" , s) == 1)
{
printf("hello, %s\n", s);
}
return 0;
}