Thursday, April 17, 2025

🧮 C++ ke Arithmetic Operators – Jab Maths aur Mohabbat Ek Saath Chale!

C++ Arithmetic Operators Bhojpuri Me – Prem Kahani ke Code ke Sang
arithmetic operator in c++

🎬 Intro – Jab Maths aur Mohabbat Ek Saath Chale!

Sochi bhaiya, Guddu apni GF Sweety ke sath date pe gaya. Sweety boli:

"Guddu, tumhare pyaar ka calculation kaise karte ho?"

Guddu bola:

"Jab tumhara pyaar + mera pyaar = hum dono ka pyaar, tabhi to zindagi set hai!" 😍

🧠 C++ ke Arithmetic Operators

C++ me 5 basic arithmetic operators hote hain:

Operator Naam Kaam
+ Addition Do values ko jodna
- Subtraction Ek value me se doosri ko ghatana
* Multiplication Do values ko guna karna
/ Division Ek value ko doosri se divide karna
% Modulus Remainder nikalna

💘 Examples – Pyaar aur Programming ke Sang

➕ Addition (`+`) – Jab Pyaar Badh Jaaye

int gudduLove = 50;
int sweetyLove = 70;
int totalLove = gudduLove + sweetyLove;
cout << "Total Pyaar: " << totalLove << endl;
Total Pyaar: 120

Joke: Guddu bola, "Tumhara pyaar mere pyaar se jyaada hai, to hum dono ka pyaar double ho gaya!" 😄

➖ Subtraction (`-`) – Jab Pyaar Kam Ho Jaaye

int initialLove = 100;
int fight = 30;
int remainingLove = initialLove - fight;
cout << "Bacha Hua Pyaar: " << remainingLove << endl;
Bacha Hua Pyaar: 70

Joke: Sweety boli, "Tumse jhagda karne ke baad bhi 70% pyaar bacha hai, to abhi break-up nahi hoga!" 😅

✖️ Multiplication (`*`) – Jab Pyaar Multiply Ho Jaaye

int gudduLove = 10;
int sweetyLove = 5;
int multipliedLove = gudduLove * sweetyLove;
cout << "Multipled Pyaar: " << multipliedLove << endl;
Multipled Pyaar: 50

Joke: Guddu bola, "Tumhara pyaar mere pyaar se multiply ho gaya, ab to zindagi set hai!" 😍

➗ Division (`/`) – Jab Pyaar Bat Jaaye

int totalLove = 100;
int people = 2;
int sharedLove = totalLove / people;
cout << "Har Ek Ka Pyaar: " << sharedLove << endl;
Har Ek Ka Pyaar: 50

Joke: Sweety boli, "Tumhara pyaar agar sab me baant do, tab bhi sab khush ho jayein!" 😂

➗ Modulus (`%`) – Jab Remainder Bach Jaaye

int totalLove = 103;
int people = 2;
int remainder = totalLove % people;
cout << "Bacha Hua Love: " << remainder << endl;
Bacha Hua Love: 1

Joke: Guddu bola, "Ek tukda tumhare liye, ek mere liye, aur ek extra – bonus love!" 😜


✨ Agar aapke dil me bhi logic aur love dono hai, to C++ sikhiye – aur Bhojpuri style me maza uthaiye! 💻❤️

No comments:

Post a Comment

💘 Constructors & Destructors in C++ – Jab GF-BF Ke Life Me Entry Aur Breakup Hota 💔🥹

Constructors & Destructors in C++ – GF-BF Format 💡 "Constructor tab call hota jab relationship start hoyi ...