Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var mackerelPrice, spratPrice, bonitoFishKg, saffronKg, shellKg float64
- fmt.Scanln(&mackerelPrice)
- fmt.Scanln(&spratPrice)
- fmt.Scanln(&bonitoFishKg)
- fmt.Scanln(&saffronKg)
- fmt.Scanln(&shellKg)
- bonitoFishSum := bonitoFishKg * mackerelPrice * 1.60
- saffronSum := saffronKg * spratPrice * 1.80
- shellSum := shellKg * 7.50
- fmt.Printf("%.2f\n", bonitoFishSum + saffronSum + shellSum)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement