mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-07-21 07:30:44 +02:00
initial import
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
|
||||
val := 2
|
||||
var erg int
|
||||
|
||||
switch {
|
||||
case val == 2:
|
||||
erg = val * 2
|
||||
fallthrough
|
||||
case val < 10:
|
||||
erg = erg * 2
|
||||
case val < 100:
|
||||
erg = erg * 3
|
||||
default:
|
||||
erg = 1
|
||||
}
|
||||
|
||||
fmt.Println(erg)
|
||||
|
||||
}
|
Reference in New Issue
Block a user