Sha256: 10293730fdfec93b21e23fd7f06db2f848fdf7b15f050a6612100e64da8aeb0f
Contents?: true
Size: 888 Bytes
Versions: 119
Compression:
Stored size: 888 Bytes
Contents
// This is a "stub" file. It's a little start on your solution. // It's not a complete solution though; you have to write some code. // Package twofer should have a package comment that summarizes what it's about. // https://golang.org/doc/effective_go.html#commentary package triangle // Notice KindFromSides() returns this type. Pick a suitable data type. type Kind const ( // Pick values for the following identifiers used by the test program. NaT // not a triangle Equ // equilateral Iso // isosceles Sca // scalene ) // ShareWith should have a comment documenting it. func KindFromSides(a, b, c float64) Kind { // Write some code here to pass the test suite. // Then remove all the stock comments. // They're here to help you get started but they only clutter a finished solution. // If you leave them in, reviewers may protest! var k Kind return k }
Version data entries
119 entries across 119 versions & 1 rubygems