Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var pagePrice, coverPrice, discountPercentage, designerSalary, teamPercentage float64
- fmt.Scanln(&pagePrice)
- fmt.Scanln(&coverPrice)
- fmt.Scanln(&discountPercentage)
- fmt.Scanln(&designerSalary)
- fmt.Scanln(&teamPercentage)
- totalPrice := ((pagePrice * 899 + coverPrice * 2) * (100 - discountPercentage) / 100 + designerSalary) * (100 - teamPercentage) / 100
- fmt.Printf("Avtonom should pay %.2f BGN.", totalPrice)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement