Skip to content

Commit

Permalink
Update kalkulator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jaringankantor committed Oct 15, 2021
1 parent 10d7bbf commit d91b4e9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions kalkulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,6 @@ package module

import "fmt"

type PersegiInterface interface {
Keliling() int
Luas() int
}

type InputPersegi struct {
a, b int
}

func (in InputPersegi) Keliling() int {
return (in.a + in.b) * 2
}

func (in InputPersegi) Luas() int {
return in.a * in.b
}

func About() {
fmt.Println("Ini adalah fungsi kalkulator")
}
Expand Down

0 comments on commit d91b4e9

Please sign in to comment.