Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var budget float64
- fmt.Scanln(&budget)
- var statists int
- fmt.Scanln(&statists)
- var dresses float64
- fmt.Scanln(&dresses)
- decors := budget / 10
- if statists > 150 {
- dresses *= 0.9
- }
- price := decors + float64(statists) * dresses
- if budget >= price {
- fmt.Println("Action!")
- fmt.Printf("Wingard starts filming with %.2f leva left.", budget - price)
- } else {
- fmt.Println("Not enough money!")
- fmt.Printf("Wingard needs %.2f leva more.", price - budget)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement