Guest User

Untitled

a guest
Jun 7th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from strutils import parseInt
  2.  
  3. let num = parseInt(readLine(stdin))
  4.  
  5. if num < 10 and num > 0:
  6.      
  7.     case num
  8.    
  9.     of 1..5:
  10.         echo "foo"
  11.        
  12.     of 6..8,9:
  13.         echo "also foo"
Add Comment
Please, Sign In to add comment