Forms of IF Statement: The if statement can take any of the given forms: (1) if ( condition ) do this ; (2) if ( condition ) { do this ; and this ; } (3) if ( condition ) do this ; else do this ; (4) if ( condition ) { do this ; and this ; } else { do this ; and this ; } (5) if ( condition ) do this ; else { if ( condition ) do this ; else { do this ; and this ; } } (6) if ( condition ) { if ( condition ) do this ; else { do this ; and this ; } } else do this ;
C tutorials for Beginners. Learn C programming, easy and fast way. C language Projects.