Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var dogFoodPrice float32 = 2.50
- var catFoodPrice float32 = 4.00
- var dogFoodCount, catFoodCount float32
- fmt.Scanln(&dogFoodCount)
- fmt.Scanln(&catFoodCount)
- var totalPrice float32 = dogFoodPrice * dogFoodCount + catFoodPrice * catFoodCount
- fmt.Printf("%f lv.", totalPrice)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement