A simple Program on if-else
#include<stdio.h>;
void main()
{
int number;
printf("Enter a number :");
scanf("%d",&number);
if( number >;= 50 )
printf("n Our number is greater than or equal to 50. n");
else
printf("n Our number is less than 50. n");
}
OUTPUT : 1.
Enter a number : 50
Our number is greater than or equal to 50.
2.
Enter a number : 5
Our number less than 50.