#include <stdio.h>
int main() {
int a,b,c,d,e;
printf("Enter 1st number : ");
scanf("%d",&a);
printf("Enter 2nd number : ");
scanf("%d",&b);
printf("Enter 3rd number : ");
scanf("%d",&c);
printf("Enter 4th number : ");
scanf("%d",&d);
printf("Enter 5th number : ");
scanf("%d",&e);
if (a>b && a>c && a>d && a>e)
{
printf("\n%d is Greatest Integer Number among all of those numbers .",a);
}
if (b>a && b>c && b>d && b>e)
{
printf("\n%d is Greatest Integer Number among all of those numbers .",b);
}
if (c>a && c>b && c>d && c>e)
{
printf("\n%d is Greatest Integer Number among all of those numbers .",c);
}
if (d>a && d>b && d>c && d>e)
{
printf("\n%d is Greatest Integer Number among all of those numbers .",d);
}
if (e>a && e>b && e>c && e>d)
{
printf("\n%d is Greatest Integer Number among all of those numbers .",e);
}
return 0;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter