#include <stdio.h>
int main()
{    
int num1,num2;
    printf("enter the first number\n");
    scanf("%d",&num1);
    printf("\nenter the second number");
    scanf("%d",&num2);
    if(num1>num2)
    {
    printf("the greater number is %d\n",num1);
    }
    else if(num2>num1)
    {printf("the greater number is %d",num2);
    }
    else{
        printf("both no are equal.");
    }
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: