- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
- for(int i=1;i<=100;i++)
- {
- if(i%5==0)
- {
- cout<<"新";
- for(int j=1;j<=i/10;j++)
- {
- cout<<" ";
- }
- cout<<"年";
- for(int k=1;k<=i/10;k++)
- {
- cout<<" ";
- }
- cout<<"快";
- for(int t=1;t<=i/10;t++)
- {
- cout<<" ";
- }
- cout<<"樂";
- system("cls");
- }
- }
- goto re;
- system("pause");
- return 0;
- }
複製代碼 |