Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- const BTCToBGN = 1168
- const yuanToUSD = 0.15
- const USDToBGN = 1.76
- const BGNToEURO = 1.95
- var bitcoinCount, yuanCount, commision float64
- fmt.Scanln(&bitcoinCount)
- fmt.Scanln(&yuanCount)
- fmt.Scanln(&commision)
- totalSum := (bitcoinCount * BTCToBGN + yuanCount * yuanToUSD * USDToBGN) / BGNToEURO * (100 - commision) / 100
- fmt.Printf("%.2f\n", totalSum)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement