Перейти к содержимому

Profit or Loss? Valid Triangle or Not? Solve Both in C (Hindi) | Lecture 25

AlgoXploration

0:00 / 0:00

Profit or Loss? Valid Triangle or Not? Solve Both in C (Hindi) | Lecture 25

26 просмотров · 1 дн. назад
AlgoXploration
1,06 тыс. подписчиков
26 просмотров · 1 дн. назад
Profit or Loss Program in C & Triangle Validity Program in C – solve 2 practical problems using if-else, else if and the logical AND (&&) operator. Can 3 cm, 4 cm and 10 cm make a triangle? Find out with the rule every side must follow! Lecture 25 of the Complete C Programming Course in Hindi. In this lecture: • Profit or loss using cost price and selling price (if / else if / else) • Printing a calculation directly with printf() • Triangle validity: the sum of any two sides must be greater than the third side • Combining 6 conditions with && (and why brackets help) • Why 3, 4 and 10 can't form a triangle Chapters: 0:00 3, 4 & 10 – can they form a triangle? 0:20 Today's 2 problems 0:50 Problem 1: Profit or loss – cost price & selling price 4:55 Compile & run: profit, loss, neither 6:45 Problem 2: Triangle validity – the rules 8:10 Writing the triangle condition with && 11:30 Compile & run: 3 4 10 and 5 5 5 12:28 Summary, quick question & next lecture 📒 Notes + Assignment: https://drive.google.com/file/d/1BIiN... ▶️ Complete C Programming Course (playlist):    • C-Programming in Hindi   ⬅️ Previous lecture (ATM Withdrawal & Vowel Check):   • Profit/Loss & Triangle Validity: 2 Classic...   ➡️ Next lecture (switch case in C): coming soon Quick question: Can the sides 5, 5 and 10 form a triangle? Write your answer with the reason in the comments. Any doubt? Ask there too, and I'll reply. 📢 Join the AlgoXploration WhatsApp Channel: https://whatsapp.com/channel/0029Vb8u... #CProgramming #CProgrammingInHindi #LogicalOperators