Largest two number

muneeswaran · January 23, 2021 · C
#include <stdio.h>
void main() 
{
    int a,b;
    printf("\n Enter the two numbers:");
    scanf("%d%d",&a,&b);
    printf("%d\t%d",a,b);
    if(a>b)
    {
        printf("\n a is greater than b");
    }
    else
    { 
        printf("\n b is greater than a");
    }
}

Comments

Please sign up or log in to contribute to the discussion.