Study guides

☆☆

Q: C program to find greatest of three numbers?

Write your answer...

Submit

Still have questions?

Related questions

Let a, b, c be your three numbers. Then the required if-else condition statement is:if( a>b && a>c)printf("a is greatest");else if( b>c && b>a)printf("b is greatest");elseprintf("c is greatest");

63, 18 and 9

Calculate their prime factors.

Draw a flow chart to find the greatest number among two numbers

Arrange them in order, least to greatest. Select the one in the middle.

The greatest number is infinity.

Line up the numbers from least to greatest. Then find the number or numbers has greatest frequency.

draw a flowchart to find the biggest number among the 3 numbers

Get the greatest of the first two numbers. Then get the greatest of the result and the third number. result = a > b ? a : b; result = result > c ? result : c; This can be combined into a single line, but that would involve too much repetition.

The GCF of two prime numbers is 1. 4, 9 and 25 are relatively prime.

program to find maximum of two numbers using pointers

The greatest common multiple of any two numbers is infinite.

People also asked