Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var areaSide int
- fmt.Scanln(&areaSide)
- var tileWidth, tileLength float64
- fmt.Scanln(&tileWidth)
- fmt.Scanln(&tileLength)
- var benchWidth, benchLength float64
- fmt.Scanln(&benchWidth)
- fmt.Scanln(&benchLength)
- area := float64(areaSide * areaSide) - benchLength * benchWidth
- tileArea := tileWidth * tileLength
- tiles := area / tileArea
- time := tiles * 0.2
- fmt.Printf("%f\n%f\n", tiles, time)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement