English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Compare if and if-else statement. - Computer Applications

Advertisements
Advertisements

Question

Compare if and if-else statement.

Distinguish Between
Advertisements

Solution

If Statement If else Statement
if statement checks a condition and exe­cutes a set of state­ments when this con­dition is true, it does not do anything when the condition is false. if-else statement checks a condition and executes a set of statements when this condition is true, it executes another set of statements when the condition is false.
shaalaa.com
Control structures in PHP
  Is there an error in this question or solution?
Chapter 6: PHP Conditional Statements - Evaluation - PART – II [Page 111]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 6 PHP Conditional Statements
Evaluation - PART – II | Q 9. | Page 111
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×