Skip to content

Commit a0cf580

Browse files
committed
Positive negetive Checking
1 parent 0aa4d65 commit a0cf580

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Programs/Basic/posneg.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
/*
3+
POsitive Negative Check Number
4+
5+
*/
6+
7+
8+
let a=10
9+
if (a>0) {
10+
console.log("The Number is Positive ")
11+
12+
13+
} else if(a<0){
14+
15+
console.log("The Number is Negative ")
16+
17+
18+
} else{
19+
console.log("The Number is Zero ")
20+
21+
}

0 commit comments

Comments
 (0)