code4sk/c/sourcecode/朱森森带领的奇妙冒险/字符串1/宇宙无敌大招呼.cpp
2023-10-18 16:17:32 +08:00

25 lines
502 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//宇宙无敌大招呼
//据说所有程序员学习的第一个程序都是在屏幕上输出一句“Hello World”跟这个世界打个招呼。作为天梯赛中的程序员你写的程序得高级一点要能跟任意指定的星球打招呼。
//输入格式:
//输入在第一行给出一个星球的名字S是一个由不超过7个英文字母组成的单词以回车结束。
//输出格式:
//在一行中输出Hello S跟输入的S星球打个招呼。
//输入样例:
//Mars
//输出样例:
//Hello Mars
#include<stdio.h>
int main()
{
char s[8]="\0";
scanf("%s",s);
printf("Hello %s",s);
return 0;
}