Scientific Calculator
tstone7051/Sign
test scricpt, displays whether input number is positive, negative, or zero.
Tagged:
var Sign=Funtion(s)
{
(s==0) ? "this number is zero" :
(s<0) ? "thisnumber is negative" :
(s>0) ? "this number is positive" :
"try again"
}
0 Comments
Sign in to leave a comment