Check number is greater than 100 or not - C Programming



/***************************************************************
 Statement - Check number is greater than 100 or not
 Programmer - Vineet Choudhary
 Written For - http://developerinsider.co
 Compiler - gcc
 ***************************************************************/

#include <stdio.h>

int main() 
{
	int number;
    
	printf("Please enter a number: ");
	scanf("%d", &number);

	if (number < 100) 
    {
		printf("Number is less than 100!\n");
	} 
    else if (number == 100) 
    {
		printf("Number is 100!!\n");
	} 
    else 
    {
		printf("Number is greater than 100!\n");
	}
	return 0;
}

/*
Output

Run1-
Please enter a number: 10
Number is less than 100!

Run2 - 
Please enter a number: 110
Number is greater than 100!
*/

Compilers -

  1. Compile C program with gcc compiler on Bash on Ubuntu on Windows 10
  2. Compile C++ program with g++ compiler on Bash on Ubuntu on Windows 10
  3. Turbo C++
  4. C/C++ Compiler (gcc) for Android - Run C/C++ programs on Android