package main
import (
"fmt"
"math"
)
type human interface {
potential() float32
}
type mahanth struct {
time float32
duration float32
}
func (m mahanth) potential() float32 {
return Math.Pow(m.time, m.duration)
}
func (avg human, doer human) finalResult() {
fmt.Printf("This, %f, is the difference!", doer.potential() - avg.potential())
}
func main() {
mahanth1, mahanth2 := mahanth{1.01, 365}, mahanth{1.03, 365}
fmt.Println("Hello! I am Mahanth, an avid Mathematician and a Backend Programmer")
fmt.Println("There is a saying. You only realize your true potential")
fmt.Println("only when you start doing things.")
finalResult(mahanth1, mahanth2)
}
Pinned Loading
-
Java-Programs
Java-Programs PublicA nearly complete collection of the commonly used mathematical operations coded using objects and methods, including the Java principle of inheritance and interface
Java
-
Data-Science
Data-Science PublicAs the name of the repo suggests, this has a lot to do with Data Science. Includes various techniques such as clustering, classification, K-Nearest neighbors, K-fold cross validation, Logistic Regr…
Jupyter Notebook 1
-
GopherChat
GopherChat PublicA simple chat app written in Go that allows you to message other people using the terminal. It is an extension of Revochat, with direct message (DM) features that allow the user to send messages di…
Go
-
-
Serializer
Serializer PublicA simple JSON serializer that can encode and decode data from a file already in valid JSON format into a Hashmap, and deserialize it back into the original JSON string
Rust
If the problem persists, check the GitHub status page or contact support.