answersLogoWhite

0

#include <stdio.h>

#include <conio.h>

int main()

{

int a,b,c,d;

printf("Enter any 4 numbers");

scanf("%d%d%d%d",&a,&b,&c,&d);

if(a>b&&a>c)

{

else if(a>d)

printf("%d is greatest",a);

}

if(b>a&&b>c)

{

else if(b>d){

printf("%d is greatest",b);

}

if(c>a&&c>b)

{

else if(c>d)

printf("%d is greatest",c);

}

else

{

printf("%d is greatest",d);

}

}

User Avatar

Wiki User

∙ 15y ago
User Avatar

What else can I help you with?

Related Questions

What are the greatest and least four-digit numbers that are divisible by 9?

Greatest = 9,999Smallest = 1,008


What four numbers have a greatest common factor of 6?

6, 12, 18, 24 are four numbers with a GCF of 6


What is the median of four numbers?

Arrange the numbers from smallest to greatest. The mean of the middle two numbers is the median.


How do you find the greatest of four numbers in a single line?

If the line is horizontal, the greatest is the furthest to the right.


What is the greatest possible sum of two 4 digit numbers?

Add the two greatest possible four digit numbers. 9999 + 9999


What is the greatest sum you can get by adding 2 four digit numbers?

19, 998.


Greatest common factor of 15 17 and 30?

1 is the greatest common factor...something else that they have in common is that they are all two digit numbers.


What two numbers have a greatest common factor of four?

4 and 8, among many others.


What is the greatest whole number that MUST be a factor of the sum of any four consecutive positive odd numbers?

8


What item yields the greatest percent of profit 2.07 2.39 6.05 or 7.02?

The answer depends on what the four numbers represent.


What is the greatest positive integer formed by the product of four distinct prime numbers less than 14?

1001


Program to find the largest of four numbers using nested if?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a,b,c,d,e; clrscr(); if(a&gt;b) { if(a&gt;c) e=a; else e=c; } else { if(b&gt;c) e=b; else e=c; } if(e&gt;d) printf("%d is the greatset",e); else printf("%d is the greatest",d); getch(); }