• Breaking News

    Funny Coder

    Funny coder is an open source web for interested programmer. It is a programming environment.It's a way where you can code with fun.

    Friday, April 22, 2016

    Find the greater or smaller number between two numbers


    Find the greater or smaller number between two numbers


    /*
    Name   : C source program
    Author : Funny Coder(Maniruzzman Akash)
    It's a free code. You can use it anywhere
    */

    #include<stdio.h>
    int main(){
    int num1, num2;
    printf("\nEnter first number : ");
    scanf("%d", &num1);
    printf("\nEnter second number : ");
    scanf("%d", &num2);

    if(num1 > num2){
    printf("\n%d is greater than %d\n", num1, num2);
    }else if(num1 < num2){
    printf("\n%d is less than %d\n", num1, num2);
    }else{
    printf("\n%d %d are equal\n", num1, num2);
    }

    return 0;
    }

    Greater or smaller C Program run
    Fig- Greater or smaller C Program run






    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel