// Homework 26, problem 3: Calculator object. // // Build a calc struct with: // value -- an int field, which starts at its zero value // add(n) -- gives back a calc with n added // sub(n) -- gives back a calc with n subtracted // mul(n) -- gives back a calc multiplied by n // show() -- prints "Value: " // // Make a few calls, and confirm that the value updates. // // Run with: go run exercises/26/homework/03-calculator.go package main import "fmt" // TODO: define the calc struct and its methods here, outside main. func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }