Hey! I am Currently learning Go Lang, and I am taking some basic Notes on my Notion and though I'd also just publish them here. They are not well thought out or well written but it's just me taking notes from time to time for my reference.
I am taking the Udemy Course by Maximilian Schwarzmüller,
func calculateFutureValue(investmentAmount, expectedReturn, years float64) (fv float64, rfv float64) { fv = (investmentAmount) * math.Pow(1+expectedReturn/100, float64(years)) rfv = fv / math.Pow(1+inflationRate/100, years) return }
go mod init example.com/bank
wantsCheckBalance := choice == 1
if choice == 1 || choice == 2 { }
if choice == 1 { fmt.Println("Your Balance is", accountBalance) } else if choice == 2 { }
accountBalance += depositAmount //which equals to accountBalance = accountBalance + depositAmount
Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!