Lesson 5 of 23
if, else এবং else if
8 min 25 XP
Condition true হলে তবেই if কোড চালায়। আরও বিকল্পের জন্য else if এবং বাকি সবকিছুর জন্য else ব্যবহার করুন। C-তে 0 মানে false এবং যেকোনো non-zero value মানে true।
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.if (x = 5) x-এ 5 রাখে এবং সবসময় true! তুলনার জন্য == ব্যবহার করুন। এই bug C-র ক্লাসিক ফাঁদ।