answersLogoWhite

0


Best Answer

Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);

Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);

Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);

Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

#include<stdio.h>

int main(){

int a,b,c;

int big;

printf("Enter any there numbers: ");

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

if(a>b && a>c)

big = a;

else if(b>c)

big = b;

else

big = c;

printf("Largest number is: %d",big);

return 0;

}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Here is an example in Java: int a = 5; int b = 7; System.out.println(a > b ? a : b);

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Using conditional operator find a biggest number among two numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you find the greatest of three numbers using ternery operator?

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.


How do you use the conditional statement of turbo c?

#include&lt;stdio.h&gt; void main() { int a=10,b=15; clrscr(); if(a&gt;b) printf("%d is the large number",a); else printf("%d is the large number",b); getch(); }


Draw a flow chart to find out the greatest number among the three given numbers ab c?

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


What does of size of operator do?

The sizeof() operator returns the number of bytes allocated to the operand.


Program to fnd the numbers are equal in Java script?

To test if two number are equal in JavaScript, we use the == operator and compare them. The below function test if two number (a and b) are equal. The function returns 1 if a is greater, -1 if b is greater, and 0 if the numbers are of equal value. function isEqualTo( a, b ){ if ( a &gt; b ){ return 1; } if (b &gt; a ){ return -1; } return 0; }

Related questions

What is the top ten biggest numbers?

there is no biggest number.


What is the biggest number that goes into a set of numbers?

The biggest number that goes into a set of numbers EVENLY is the Greatest Common Factor of the set of numbers.


What is the name of the biggest number?

There is no biggest number. Numbers go on forever. Infinity isn't a number.


What is the biggest correctly formed Roman number?

Numbers are infinite-so there is no biggest number.


What is the biggest number yet?

There is no actual biggest number because numbers can go on forever.


How do you find the product of 16?

"Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible. "Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible. "Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible. "Product" is a binary operator. A binary operator takes two numbers as input and combines them into an output. Your question gives only one number as input and so a sensible answer is impossible.


What is biggies number?

the biggest number in the world has lots of numbers


The biggest number in the world?

Numbers are infinite, which means they have no end. For that reason, there is no biggest number.


How do you find the greatest of three numbers using ternery operator?

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.


How do you get the range from a group of numbers?

Range = Biggest number - smallest number.


What is the biggest number in the world?

There is no biggest number - they go on forever.Some might say that the answer is infinity while others will argue that infinity is a mathematical concept (just as numbers are) but is not itself a number.As we all know numbers go on and on and on. It is proven that there is no such thing as the biggest number in the world. we cannot really know what the biggest number is because the number system go on they really don't have specific number. We really dont know what the biggest number is.there is no limit to the amount of numbers because you can also add on at least one morewhat is the bigest number in the world?Numbers never end.You could say infinaty thoughthe biggest number in the world is unknown it just keeps going on and onNumbers never ever stop so there is no "biggest" number. Numbers just go on and on forever.There is no biggest number as you can continue to add numbers to infinity... etc infinity +1. But there is a number called a googol which is 1 and 100 zero's.It is infinity as for example the mathematical constant for pi of a circle has never been determined.


Is 28554168 the biggest number?

No because numbers are infinite