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
#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