Advertisement
Spocoman

05. Training Lab

Sep 15th, 2024
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.25 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var w, h float64
  6.     fmt.Scanln(&w)
  7.     fmt.Scanln(&h)
  8.    
  9.     var num = (h - 1) * 100 / 70
  10.     var row = w * 100 / 120
  11.     var sum = int(num) * int(row) - 3
  12.    
  13.     fmt.Printf("%.2f\n", sum)
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement