The if statement allows our program to conditionally execute a statement.
(if স্টেটমেন্ট আমাদের প্রোগ্রামকে শর্তসাপেক্ষে একটি স্টেটমেন্ট চালানোর অনুমতি দেয়।)
Use the if statement to specify a block of C code to be executed if a condition is true.
(একটি শর্ত সত্য হলে if body ভিতরে থাকা statement print হয়।)
Syntax:
Output:
Use the else statement to specify a block of C code to be executed if a condition is false.
( if body এর শর্ত মিথ্যা হলে else body ভিতরে থাকা statement print হয়।)
Syntax:
Output:
The else if statement allows our program to use multiple condition.
( if else statement আমাদের প্রোগ্রামকে একাধিক শর্ত ব্যবহার করতে দেয়।)
Syntax:
Output:
Syntax:
Output:
Task-01: Write a program that will take input from user & check it's vowel or consonant.