Answer to Question #288265 in Algorithms for sup

Question #288265

a algorithm whether a number is a single digit number,

two-digit number, three-digit number, four-digit number or just more than four-digit number


1
Expert's answer
2022-01-18T02:07:15-0500

input:

int n number


case : 0 <= n <= 9

display: 'this is single digit number'

case: 10 <= n <= 99

display: 'this is two-digit number'

case: 100 <= n <= 999

display: 'this is three-digit number'

case: 1000 <= n <= 9999

display: 'this is four-digit number'

case: n => 10000

display: 'this is more than four-digit number'


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS