Conditional Statement:-
Conditional statements का उपयोग different conditions के आधार पर flow of execution को decide करने के लिए किया जाता है यदि कोई condition true है, तो आप एक action perform कर सकते हैं और यदि condition false है, तो आप another action perform कर सकते हैं।
There are 5 types of conditional statement
-
If statement
-
If-else Statement
-
If –else- if-else statement
-
Nested if
-
Complex Condition
Conditional Statement:-
Conditional statements are used to decide the flow of execution based on different conditions. If a condition is true, you can perform an action and if the condition is false, you can perform another action.
There are 5 types of conditional statement
-
If statement
-
If-else Statement
-
If –else- if-else statement
-
Nested if
-
Complex Condition