1457 - 《C语言程序设计》江宝钏主编-习题1-3-新年好
编写程序在屏幕上显示:
*****************************
Happy New Year!
*****************************
注意:
29个星号,Happy New Year!首字母大写,中间1个空格隔开,末尾有英文叹号。
H之前7个空格,叹号之后没有空格。
一共3行,中间没有空行。
Input
没有输入
Output
*****************************
Happy New Year!
*****************************
Examples
Input
没有输入
Output
*****************************
Happy New Year!
*****************************
Hint
复制样例输出,改成程序代码。
Solution C
int main(int argc, char* argv[]) { printf("*****************************\n"); printf(" Happy New Year!\n"); printf("*****************************\n"); return 0; }
Solution C++
#include<stdio.h> int main() { printf("*****************************\n Happy New Year!\n*****************************"); }
Hint
复制样例输出,改成程序代码。