Advertisement
Spocoman

05. Repainting

Sep 15th, 2024 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.46 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var nylonPrice = 1.50
  6.     var paintPrice = 14.50
  7.     var thinnerPrice = 5.00
  8.    
  9.     var nylon, paint, thinner, hours float64
  10.     fmt.Scanln(&nylon)
  11.     fmt.Scanln(&paint)
  12.     fmt.Scanln(&thinner)
  13.     fmt.Scanln(&hours)
  14.  
  15.     var materials = (nylon + 2) * nylonPrice + paint * paintPrice * 1.10 + thinner * thinnerPrice + 0.40
  16.     var workers = materials * hours * 0.30
  17.    
  18.     fmt.Println(materials + workers)
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement