Advertisement
Spocoman

05. Number 100...200

Sep 16th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.28 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var num int
  6.     fmt.Scanln(&num)
  7.    
  8.     if (num < 100) {
  9.         fmt.Println("Less than 100")
  10.     } else if (num <= 200) {
  11.         fmt.Println("Between 100 and 200")
  12.     } else {
  13.         fmt.Println("Greater than 200")
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement