Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var money, months, percent float64
- fmt.Scanln(&money)
- fmt.Scanln(&months)
- fmt.Scanln(&percent)
- var monthPercent = money * percent / 1200
- var total = money + months * monthPercent
- fmt.Println(total)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement