//Display the greatest of three using else-if ladder
#include<stdio.h>
int main()
{
int a,b,c;
printf("Enter a, b, c=");
scanf("%d %d %d",&a,&b,&c);

if(a>b && a>c)
printf("\na = %d is greatest",a);
else if(b>a && b>c)
printf("\nb = %d is greatest",b);
else
printf("\nc = %d is greatest",c);

return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: