Largest In Two Number - C Program

Largest In Two Number

#include<stdio.h>
int main()
{
	int a,b;
	printf("Enter the value of A:");
	scanf("%d",&a);
	printf("Enter the value of B:");
	scanf("%d",&b);
	if(a>b)
		printf("A is Largest");
	else if(b>a)
		printf("B is Largest");
	else
		printf("A and B are equals");

    return 0;
	
}

Output - Largest In Two Number

Enter the value of A:10                                                                                               
Enter the value of B:20                                                                                               
B is Largest  
Compile and Run Online