fork download
  1. num = 10
  2.  
  3. if num > -10 and num <10:
  4. print("一位數")
  5. if num > -100 and num < 100:
  6. print("二位數")
  7. else:
  8. print("二位數以上")
  9.  
  10.  
  11.  
Success #stdin #stdout 0.03s 9608KB
stdin
8
stdout
二位數