Ad Code

Make Your Friend's Birthday Special with a C++ Code.

Happy Birthday Program Using C++

In this tutorial, we will learn how to create a simple birthday program using C/C++. This program is a fun and creative way to celebrate the birthday of your friends or loved ones.

The program includes a source code that is easy to understand and implement. With this code, you can customize the birthday message and personalize it for your friend.

The program is simple and requires only basic knowledge of C/C++. It uses functions like printf, scanf, and if-else statements to display the message on the screen.

By using this program, you can make your friend's birthday special by surprising them with a unique and personalized birthday message.

Overall, this tutorial is a great way to learn and practice your coding skills while also having fun. So, let's get started and create a special birthday program for your friend!

Source Code:

 #include<iostream>
 using namespace std;
 int main()
 {
	int a,b;
	cout<<endl<<"                                                 Welcome Dear"<<endl<<"                                           Please enter any one number: ";
	cin>>a;
	cout<<"                                       From: Ashish Kumar"<<endl<<"                                       To:  Name"<<endl;
	cout<<"                                       Please enter any one number for a Surprise: ";
	cin>>b;
	cout<<endl<<"                                                   i   i   i   i"<<endl;
	cout<<"                                                   i   i   i   i"<<endl;
	cout<<"                                                   i   i   i   i"<<endl;
	cout<<"                                              -----------------------"<<endl;
	cout<<"                                              |/////////////////////|"<<endl;
	cout<<"                                              |.....This is for.....|"<<endl;
	cout<<"                                              |.........You.........|"<<endl;
	cout<<"                                              |/////////////////////|"<<endl;
	cout<<"                                        -----------------------------------"<<endl;
	cout<<"                                        |/////////////////////////////////|"<<endl;
	cout<<"                                        |.........Happy Birthday..........|"<<endl;
	cout<<"                                        |..........My Dear  Name..........|"<<endl;
	cout<<"                                        |/////////////////////////////////|"<<endl;
	cout<<"                                    --------------------------------------------"<<endl;
	cout<<endl<<"                                       I pray to God on your birthday that "<<endl<<"                                      the friendship between us never break.";
	cout<<endl<<"                                       Wish you a very very ~HAPPY BIRTHDAY~  "<<endl<<"                                       Keep smiling all the time.... - Ashish Kumar      "<<endl<<endl;
	
	return 0;
 }

Output:


So, you can celebrate a birthday using code like a coder ...... 

Thank you 

Post a Comment

0 Comments

Ad Code