1301 - C语言程序设计教程(第三版)课后习题1.5
请参照本章例题,编写一个C程序,输出以下信息:
**************************
Very Good!
**********
数*号可看出,Very前面9空格,Good前面……
*也是输出的一部分,别光打印Very Good!
Input
无需输入
Output
**************************
Very Good!
**********
Examples
Input
no input needed
Output
**************************
Very Good!
**************************
Hint
Good!后面没有空格
Solution C
main() { printf("**************************\n Very Good!\n**************************"); return 0; }
Solution C++
#include<iostream> using namespace std; int main(){ cout<<"**************************"<<endl; cout<<" Very Good!"<<endl; cout<<"**************************"<<endl; return 0; }
Hint
Good!后面没有空格