Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 6, 2018 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/966e836a8c8547471416dae0dbb79bb0 to your computer and use it in GitHub Desktop.
Save parzibyte/966e836a8c8547471416dae0dbb79bb0 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main(){
descuento := 50
switch descuento{
case 90:
fmt.Println("Se descuenta el 90 por ciento")
case 70:
fmt.Println("Se descuenta el 70 por ciento")
case 50:
fmt.Println("Se descuenta el 50 por ciento")
case 30:
fmt.Println("Se descuenta el 30 por ciento")
case 10:
fmt.Println("Se descuenta el 10 por ciento")
default:
fmt.Println("No hay descuento")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment