Source Code For Greatest of Two Numbers:
{
int a, b;
printf("enter two numbers");
scanf("%d%d",&a,&b);
if(a>b)
{
printf("the number %d is greater",a);
}
else if(a<b)
{
printf("the number %d is greater",b);
}
else
{
printf("the numbers are equal");
}
getch();
}

No comments:
Post a Comment