C program that check if a number is Bigger than 100

Posted by Samath
November 09, 2014


Write a C program that reads a number from the keyboard via the scanf function, and then prints the message The number is bigger than 100 if it is. If the number is 100 or less than 100 then you should print out the message: The number is not bigger than 100.


#include <stdio.h>
int main(int argc, char *argv[])
	int num;
	printf("Please enter a number: ");
	if(num > 100)
		printf("The number is bigger than 100\n");
		printf("The number is not bigger than 100\n");
	return 0;

November 14, 2014
back 2 basics, nice