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 outputText(text1 string, text2 string){ fmt.Print() }
func outputText(text1, text2 string) { fmt.Print() }
outputText("Investment Amount: ") fmt.Scan(&investmentAmount) func outputText(text1 string) { fmt.Print(text1) }
const inflationRate = 2.5 func main() { var investmentAmount float64 = 1000 var years float64 var expectedReturn = 5.5 }
func calculateFutureValue(investmentAmount, expectedReturn, years float64) (float64, float64) { fv := (investmentAmount) * math.Pow(1 expectedReturn/100, float64(years)) rfv := fv / math.Pow(1 inflationRate/100, years) return fv, rfv }
futureValue, futureRealValue := calculateFutureValue(investmentAmount, expectedReturn, years)
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3