Created
March 6, 2018 06:30
-
-
Save parzibyte/966e836a8c8547471416dae0dbb79bb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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