Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

Program to compare number is greater than 100 or not using if statement

Posted By: Harley Evans     Category: C Programming     Views: 4222

Write a program to compare number is greater than 100 or not using if statement.

Code for Program to compare number is greater than 100 or not using if statement in C Programming

#include<stdio.h>
#include<conio.h>

void main()
{
    int number;
    clrscr();

    printf("Enter an integer number:");
    scanf("%d",&number);

    if(number < 100)
    {
        printf("Your number is smaller than 100\n\n");
    }
    else
    {
        printf("Your number contains more than two digits :");
    }
    getch();
}
  
Share: 



Harley Evans
Harley Evans author of Program to compare number is greater than 100 or not using if statement is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!