Advertisement
Spocoman

07. Basketball Equipment

Sep 15th, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.35 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var tuitionFee float64
  6.     fmt.Scanln(&tuitionFee)
  7.    
  8.     var shoesPrice = tuitionFee * 0.6
  9.     var teamClothes = shoesPrice * 0.8
  10.     var ball = teamClothes / 4
  11.     var accessories = ball / 5
  12.  
  13.     var sum = tuitionFee + shoesPrice + teamClothes + ball + accessories
  14.    
  15.     fmt.Println(sum)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement