C Program to Find Profit, Loss or No Profit No Loss लाभ, हानि या न लाभ न हानि ज्ञात करने का C प्रोग्राम
When a product is purchased at a certain price and sold at another price, we can determine whether a profit or loss has occurred by comparing the cost price and selling price. जब कोई वस्तु एक निश्चित कीमत पर खरीदी जाती है और दूसरी कीमत पर बेची जाती है, तो क्रय मूल्य और विक्रय मूल्य की तुलना करके लाभ या हानि ज्ञात की जा सकती है। Cost Price (CP): The price at which a product is purchased. क्रय मूल्य (CP): वह मूल्य जिस पर कोई वस्तु खरीदी जाती है। Selling Price (SP): The price at which a product is sold. विक्रय मूल्य (SP): वह मूल्य जिस पर कोई वस्तु बेची जाती है। Formulas (सूत्र) Profit (लाभ) = Selling Price − Cost Price , when SP > CP. Loss (हानि) = Cost Price − Selling Price , when CP > SP. No Profit, No Loss (न लाभ, न हानि) , when SP = CP. C Program #include <stdio.h> int main(void) { float sp, cp, pl; printf("Enter Cost Price and Selling Price: "); scanf("%f %f", &cp, &sp); pl = sp - cp; if (pl > 0) { pri...