Skip to content

Instantly share code, notes, and snippets.

@PANDATD
Created August 18, 2021 05:17
Show Gist options
  • Select an option

  • Save PANDATD/0c3145af7f0628064a3f82d0488d7802 to your computer and use it in GitHub Desktop.

Select an option

Save PANDATD/0c3145af7f0628064a3f82d0488d7802 to your computer and use it in GitHub Desktop.
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
areaOfcircle(4.0)
areaOftriangle(2.0, 3.0)
}
func areaOfcircle(r float64) {
area := 22.14 * r * r
fmt.Println("Area of circle :- ", area)
}
func areaOftriangle(b float64, h float64) {
area := 0.5 * b * h
fmt.Println("Area of traingle :- ", area)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment