/*WAP to Demonstration of if statement */
#include<stdio.h>
#include<conio.h>
main( )
{
int num ;
printf ( "Enter a number less than 10 " ) ;
scanf ( "%d", &num ) ;
if ( num <= 10 )
printf ( "Entered number is less than 10=%d",num) ;
getch();
}



No comments:
Post a Comment