Logo

dev-resources.site

for different kinds of informations.

Find Greatest Number Using Ternary Operator

Published at
7/12/2018
Categories
javascript
math
c
ternaryoperator
Author
sandeepkamboj12
Categories
4 categories in total
javascript
open
math
open
c
open
ternaryoperator
open
Author
15 person written this
sandeepkamboj12
open
Find Greatest Number Using Ternary Operator


var a=62;
var b=200;
var c=8;
var largestnumber = (a>b&&a>c?a:(b>a&&b>c?b:c));
alert(largestnumber);


Featured ones: