write a program to check whether a number given by the user is a two digit number or a three digit number using a ternary operator in java
Answers
Answered by
1
Answer:
Get input num from user using input() method check whether the num is greater than 99 and less than 100 using if statement. if it is true, then print num is three digit number using print() method. Else print num is not three digit number using print() method.
Explanation:
use this same as in two digit like greater than 9 and lesser than 10
Answered by
0
Answer:
use the same as in two digit like greater than lesser than 10
Similar questions