Wednesday, July 11, 2018

Birh day wish program in C++

Source code:
#include<iostream.h>
#include<conio.h>
#include<dos.h>  //for delay();

int main()
{
 int i;
 char h=3;
 clrscr();
 cout<<"\t\t\tFrom: BIKASH SIJAPATI\n";
 delay(2000);
 cout<<"\t\t\tTo  : BALKRISHNA BHANDARI\n\n";
 delay(200);
 cout<<"\t\t";
 for(i=0;i<42;i++)
 cout<<"_";
 cout<<"\n\n";

 delay(200);
 cout<<"\t\t\t\ti i i i i\n";

 delay(200);
 cout<<"\t\t\t\t| | | | |\n";

 delay(200);
 cout<<"\t\t\t      __i_i_i_i_i__\n";

 delay(200);
 cout<<"\t\t\t     |"<<h<<"           "<<h<<"|\n";

 delay(200);
 cout<<"\t\t\t   __| "<<h<<"  03/28  "<<h<<" |__\n";

 delay(200);
 cout<<"\t\t\t  | "<<h<<"   "<<h<<"       "<<h<<"   "<<h<<" |\n";

 delay(200);
 cout<<"\t\t\t__|"<<h<<"   HAPPY     "<<h<<"   "<<h<<"|__\n";

 delay(200);
 cout<<"\t\t       | "<<h<<"   "<<h<<"     BIRTHDAY    "<<h<<" |\n";

 delay(200);
 cout<<"\t\t       |"<<h<<"  "<<h<<"     "<<h<<"    "<<h<<"     "<<h<<"   "<<h<<"|\n";


 delay(200);
 cout<<"\t\t       | "<<h<<" "<<h<<" "<<h<<" "<<h<<" B A L E "<<h<<" "<<h<<" "<<h<<" "<<h<<" |\n";

 delay(200);
 cout<<"\t\t       |_________________________|\n";
 delay(200);
 cout<<"\t\t";
 for(i=0;i<42;i++)
 cout<<"_";
 cout<<"\n\t\t Happiness begins with your smile and let your\n";
 cout<<"\t\tsmile change the world dear.Happy birthday BALE";
 cout<<"\n\n\n\n\n";
 getch();
 return 0;
}

output:

for more:

No comments:

Post a Comment