Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var vegetablesBg, fruitsBg, vegetablesKg, fruitsKg float64
- fmt.Scanln(&vegetablesBg)
- fmt.Scanln(&fruitsBg)
- fmt.Scanln(&vegetablesKg)
- fmt.Scanln(&fruitsKg)
- var result = (vegetablesBg * vegetablesKg + fruitsBg * fruitsKg) / 1.94
- fmt.Printf("%.2f\n", result)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement