C Program to Find Largest of Two Numbers

//WAP TO FIND THE LARGEST OF THE 2 NUMBERS

#include<stdio.h>
int main()
{
	int n1,n2;
	printf("Enter the number1 :--> ");
	scanf("%d",&n1);

	printf("Enter the number2 :--> ");
	scanf("%d",&n2);

	if(n1 > n2)
	{
		printf("%d > %d", n1, n2);
	}
	else
	{
		printf("%d > %d ", n2, n1);;
	}

	return 0;
}


<< Previous | Next >>