Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var squareMeters float32
- fmt.Scanln(&squareMeters)
- var price float32 = squareMeters * 7.61
- var discount float32 = price * 0.18
- var finalPrice float32 = price - discount
- fmt.Printf("The final price is: %f lv.\n", finalPrice)
- fmt.Printf("The discount is: %f lv.\n", discount)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement