Scala
xxxxxxxxxx
object ExCheckNumber {
def main(args: Array[String]) {
/**declare a variable*/
var number= (-100);
if(number==0){
println("number is zero");
}
else if(number>0){
println("number is positive");
}
else{
println("number is negative");
}
}
}
number is negative
Linux - How to Install anc-api-tools
Linux - How to Install curvedns
Python - Check if a Number is Positive, Negative or 0
Linux - How to Install zenmap
C - Count Number of Digits in an Integer
C++ - Check Whether a Number is Prime or Not
C++ - Check Leap Year
JavaScript - Check Whether a String Starts and Ends With Certain Characters
C - Find Largest Number Using Dynamic Memory Allocation
Kotlin - Round a Number to n Decimal Places
Kotlin - Reverse a Number
Linux - How to Install zfs-test
C++ - Find Quotient and Remainder
Linux - How to Install xbitmaps
Kotlin - Find Factorial of a Number
Java - Reverse a Number
Linux - How to Install zstd
GoLang - Base64 Encoding
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month