Compare the first two numbers with the ternary operator. Store the result in a temporary variable. Compare the temporary variable with the third number, again using the ternary operator.
#include<stdio.h> #include<conio.h> void main() { int a,b,c; clrscr(); printf("enter the three numbers: "); scanf(%d%d%d:,&a&b&c); if(a>b | a>c) { printf("the greatest no: is %d",a); } if(b>c) { printf("the greatest no: is %d",b); } else { printf("the greatest no: is %d",c); } getch(); }
draw a flowchart to find the biggest number among the 3 numbers
Hardware software operator
start input A & B if A>B print A is greatest if B>A print B is greatest stop james ola writes.....SOT.
The conditional operator is also known as ternary operator. It is called ternary operator because it takes three arguments. The conditional operator evaluates an expression returning a value if that expression is true and different one if the expression is evaluated as false.Syntax:condition ? result1 : result2If the condition is true, result1 is returned else result2 is returned.
Any three.
The sum of the three greatest prime numbers that are less than 39 is 97.
63, 18 and 9
The greatest common factor for the numbers 3 and 37 is 1.
Three numbers, not related to one another by any mathematical operator.
The answer is 998.
The numbers three and five have the greatest common factor of one.
4,8,12
001, and 999
Three numbers that have a greatest common factor of 25 are any multiples of 25 such as 25, 50, and 75. The greatest common factor of these numbers is 25 because it is the largest number that divides each of them evenly. Another set of numbers could be 125, 150, and 175, as they are also multiples of 25 with a greatest common factor of 25.
That's a list of three numbers. If you actually mean 'and' like in the Boolean operator and you write the numbers as binaries, then the result is zero.
18, 45 & 36