Advertisement
Spocoman

03. Deposit Calculator

Sep 15th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.28 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var money, months, percent float64
  6.     fmt.Scanln(&money)
  7.     fmt.Scanln(&months)
  8.     fmt.Scanln(&percent)
  9.  
  10.     var monthPercent = money * percent / 1200
  11.     var total = money + months * monthPercent
  12.    
  13.     fmt.Println(total)
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement