Friday, 14 March 2014

C Program Demonstration of if statement

/* Demonstration of if statement */
main( )
{
int   num ;
printf ( "Enter a number less than 10 " ) ;
scanf ( "%d", &num ) ;
if ( num <= 10 )
printf ( "What an obedient servant you are !" ) ;
}

No comments:

Post a Comment