Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Wednesday, August 31, 2011

C-38: Example for Nested IF

Example to demonstrate Nested IF :

Refer Find largest from given numbers also.



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();

            printf("First Section\n");
            {
                 printf("Second Section\n");
                 {
                        printf("Third section\n");
                        {
                                    printf("Fourth Section\n");
                        }
                 }
            }
            getch();
}



Output:

First Section
Second Section
Third Section
Fourth Section
=========================================================================
Back to Home   &  C

No comments: