Friday, 6 July 2012

Conditional statement001

Demonstration of if statement


#include <stdio.h>
#include <conio.h>
void main ( )
{      
        int       num;
        clrscr ( );
                 
        printf ("\n\n\n\t\t Enter a number less than Ten.....:"); scanf ("%d",&num);
            
        if ( num <= 10 )
        {                          
                    printf ("\n\n\n\t\t What an obedient student you are.");
        }                       
        getch ( );
}

Click here to contact us

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...