Write a c program to find a greater number among two numbers.

#include <stdio.h>
#include<conio.h>

int main()
{
    int n1,n2;
    printf("Enter Two Numbers :");
    scanf("%d%d",&n1,&n2);
   
    if(n1>n2){
    printf("%d is largest",n1);
    }
    else
    {
    printf("%d is largest",n2);
    }
    return 0;
}
Enter Two Numbers : 10 
20 
20 is largest                                                                                                                                                                                                                                                                      

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *