Saturday, July 13, 2019

Maximum number Find

Maximum number Find.
max number




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

void main()
{
int a,b;
clrscr();
printf("Enter The Value Of A And b ");
scanf("%d%d",&a,&b);

if(a>b)            //logic of maximum number
{
printf("%d A is Max",a);
}
else
{
printf("%d B is Max",b);
}
getch();

}

Output:


EmoticonEmoticon