answersLogoWhite

0

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

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
JudyJudy
Simplicity is my specialty.
Chat with Judy
BeauBeau
You're doing better than you think!
Chat with Beau
More answers

#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;

}

User Avatar

Wiki User

12y ago
User Avatar

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

User Avatar

Wiki User

15y ago
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