Comparing two numbers

 Source Code:

#include <stdio.h>

#include <string.h>

#include <math.h>

#include <stdlib.h>


int main() {

    int a,b;

    scanf("%d%d",&a,&b);

    if(a>b)

        printf("value1 is greater");

    else

        if(a<b)

            printf("value2 is greater");

    else

        printf("both values are equal");


    /* Enter your code here. Read input from STDIN. Print output to STDOUT */    

    return 0;

}

Comments