Advertisement
Spocoman

Programming Book

Oct 12th, 2024 (edited)
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.49 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6.     var pagePrice, coverPrice, discountPercentage, designerSalary, teamPercentage float64
  7.     fmt.Scanln(&pagePrice)
  8.     fmt.Scanln(&coverPrice)
  9.     fmt.Scanln(&discountPercentage)
  10.     fmt.Scanln(&designerSalary)
  11.     fmt.Scanln(&teamPercentage)
  12.  
  13.     totalPrice := ((pagePrice * 899 + coverPrice * 2) * (100 - discountPercentage) / 100 + designerSalary) * (100 - teamPercentage) / 100
  14.  
  15.     fmt.Printf("Avtonom should pay %.2f BGN.", totalPrice)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement