বেশিরভাগ প্রোগ্রামিং ভাষার মতো, পিএইচপিও আপনাকে কোডটি লেখার অনুমতি দেয় যা রান সময়ে কোনও যৌক্তিক বা তুলনামূলক পরীক্ষার শর্তগুলির ফলাফলের ভিত্তিতে বিভিন্ন ক্রিয়া সম্পাদন করে। এর অর্থ, আপনি অভিব্যক্তি আকারে পরীক্ষার শর্ত তৈরি করতে পারেন যা সত্য বা মিথ্যাতে মূল্যায়ন করে এবং এই ফলাফলগুলির উপর ভিত্তি করে আপনি নির্দিষ্ট ক্রিয়া সম্পাদন করতে পারেন।
 (Like most programming languages, PHP also allows you to write code that perform different actions based on the results of a logical or comparative test conditions at run time. This means, you can create test conditions in the form of expressions that evaluates to either true or false and based on these results you can perform certain actions.)

Case 1 

Input :-


Output :-


Case 2 

Input :-


Output :-



যদি আপনি এটি বুঝতে পারেন তবে if else condition ব্যবহার করে একটি প্রোগ্রাম তৈরি করার চেষ্টা করুন, যেখানে ব্যবহারকারী মান রাখতে পারেন। (If you understand it then try to make a program using if else condition, where user can put the value.)

0 Comments