Search This Blog

July 10, 2014

Write a Program to find whether a number is Greater,Equal to or Less then 20

#include <stdio.h>
#include <conio.h>
int main( )
{
 int a;
printf("Enter a number");
        scanf("%d",&a);
if(a<20)
        printf("You have enter less then 20");

else
if(a>20)
printf("you have enter greater then 20");
else
printf("You have enter 20");
 getch( );
 return 0;
}


No comments:

Post a Comment

Earn Money From Home