Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream.h>
- #include<conio.h>
- #include<iomanip.h>
- void happy();
- void year();
- int x,y;
- int main()
- {
- happy();
- year();
- getch();
- return 0;
- }
- void happy()
- {
- cout<<"\n\n";
- for(int x=1;x<=6;x++)//for H structure
- {
- cout<<"H";
- for(int y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"H"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(int i=1;i<=11;i++)
- {
- cout<<"H";
- }
- for(int x=1;x<=6;x++)
- {
- cout<<"H";
- for(int y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"H"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- cout<<"\n\n";
- for(int x=1;x<=11;x++)//FOR A STRUCURE
- {
- cout<<"A";
- for(int time=0;time<=10000000;time++);
- }
- for(int x=1;x<=6;x++)
- {
- cout<<"A";
- for(int y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"A"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(int i=1;i<=11;i++)
- {
- cout<<"A";
- }
- for(int x=1;x<=6;x++)
- {
- cout<<"A";
- for(int y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"A"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- cout<<"\n\n";
- for(int x=1;x<=11;x++)//FOR P STRUCURE
- {
- cout<<"P";
- for(int time=0;time<=10000000;time++);
- }
- for(int x=1;x<=6;x++)
- {
- cout<<"P";
- for(int y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"P"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(int i=1;i<=11;i++)
- {
- cout<<"P";
- }
- for(int y=1;y<=6;y++)
- {
- cout<<"P"<<"\n";
- }
- cout<<"\n\n";
- for(int x=1;x<=11;x++)//FOR P STRUCURE
- {
- cout<<"P";
- for(int time=0;time<=10000000;time++);
- }
- for(int x=1;x<=6;x++)
- {
- cout<<"P";
- for(int y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"P"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(int i=1;i<=11;i++)
- {
- cout<<"P";
- }
- for(int y=1;y<=6;y++)
- {
- cout<<"P"<<"\n";
- }
- int min_spacing = 1;/*for Y STRUCTURE*/
- int max_spacing = 10;
- // Print V structure
- for(int mid_spacing = max_spacing, left_spacing = min_spacing;
- mid_spacing >= min_spacing;
- left_spacing++, mid_spacing -= 2)
- {
- // Initial left spacing
- for(int k = 0; k <= left_spacing; k ++)
- printf(" ");
- // First *
- printf("Y");
- // Middle spacing
- for(int k = 0; k <= mid_spacing; k++)
- printf(" ");
- // Second *
- printf("Y");
- // Endline
- printf("\n");
- }
- for(int x=1;x<=7;x++)
- {
- cout<<" ";
- for(int y=1;y<=7;y++)
- {
- cout<<" ";
- }
- cout<<"Y"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- }
- void year()//year
- {
- for(x=1;x<=12;x++)//for 2014 structure
- {
- cout<<"2";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=10;x++)
- {
- cout<<" ";
- for(y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"2"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=11;x++)
- {
- cout<<"2";
- for(int time=0;time<=10000000;time++);
- }
- for(y=1;y<=10;y++)
- {
- cout<<"2"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=12;x++)
- {
- cout<<"2";
- for(int time=0;time<=10000000;time++);
- }
- cout<<"\n"<<"\n";
- for(x=1;x<=11;x++)
- {
- cout<<"0";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=12;x++)
- {
- cout<<"0";
- for(y=1;y<=10;y++)
- {
- cout<<" ";
- }
- cout<<"0"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=12;x++)
- {
- cout<<"0";
- for(int time=0;time<=10000000;time++);
- }
- cout<<"\n"<<"\n";
- for(int i=5;i>=1;i--)
- {
- cout<<setw(i)<<"1"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=7;x++)
- {
- cout<<"1";
- for(int time=0;time<=10000000;time++);
- }
- for(x=1;x<=10;x++)
- {
- cout<<" ";
- for(y=1;y<=5;y++)
- {
- cout<<" ";
- }
- cout<<"1"<<"\n";
- for(int time=0;time<=10000000;time++);
- }
- cout<<"\n"<<"\n"<<"\n";
- for(x=1;x<=12;x++)
- {
- cout<<"5";
- }
- for(y=1;y<=10;y++)
- {
- cout<<"5"<<"\n";
- }
- for(x=1;x<=12;x++)
- {
- cout<<"5";
- }
- for(int time=0;time<=10000000;time++);
- for(x=1;x<=10;x++)
- {
- cout<<" ";
- for(y=1;y<=10;y++)
- {
- cout<<" ";
- }
- for(int time=0;time<=10000000;time++);
- cout<<"5"<<"\n";
- }
- for(x=1;x<=12;x++)
- {
- cout<<"5";
- }
- cout<<endl;
- for(int time=0;time<=100000000;time++);
- cout<<"wish you a happy 2015";
- for(int time=0;time<=100000000;time++);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment