游客 Signup | Login
中文 | En

1818 - 课后习题1.5

请参照本章例题,编写一个C程序,输出以下信息:

**************************

         Very    Good!

数*号可看出,Very前面9空格,Good前面……

*也是输出的一部分,别光打印Very Good!

另注意,星号的行和Very Good的行之间并没有额外的空行。

Input

无需输入

Output

**************************

         Very    Good!

Examples

Input

no input needed

Output

**************************
         Very    Good!
**************************

Solution C

#include<stdio.h>
int main()
{
  int i=0;
  char s[]="         Very    Good!\n";
  while(i++<26)
    printf("*");
  printf("\n%s",s);
 i=0;
  while(i++<26)
    printf("*");
  printf("\n");
  return 0;
}

Solution C++

#include<iostream>
using namespace std;
int main()
{
cout<<"**************************"<<endl;
cout<<"         Very    Good!"<<endl;
cout<<"**************************"<<endl;
}
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题