C program to find smaller || greater among two numbers

Answer:
#include<stdio.h>
int main()
{
    int num1, num2;
    printf("Enter two numbers");
    scanf("%d%d",&num1,&num2);
    if(num1<num2)
        printf("%d is smaller",num1);
    else
        printf("%d is smaller",num2);
    return 0;
}

C program to find greater among two numbers
Ans:
#include<stdio.h>
int main()
{
    int num1, num2;
    printf("Enter two numbers");
    scanf("%d%d",&num1,&num2);
    if(num1>num2)
        printf("%d is greater",num1);
    else
        printf("%d is greater",num2);
    return 0;
}