Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var nylonPrice = 1.50
- var paintPrice = 14.50
- var thinnerPrice = 5.00
- var nylon, paint, thinner, hours float64
- fmt.Scanln(&nylon)
- fmt.Scanln(&paint)
- fmt.Scanln(&thinner)
- fmt.Scanln(&hours)
- var materials = (nylon + 2) * nylonPrice + paint * paintPrice * 1.10 + thinner * thinnerPrice + 0.40
- var workers = materials * hours * 0.30
- fmt.Println(materials + workers)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement