functhirdAngle(a,bint)(int,error){if(a+b)>=180{return0,errors.New("Input angles sum is greater than or equal to 180 degress, this cannot be a triangle")}ifa==0||b==0{return0,errors.New("Input angle cannot be zero, cannot be a triangle")}angle:=360-a-b// sum of angles must be 360 degressreturnangle,nil}

## re: Daily Challenge #84 - Third Angle of a Triangle VIEW POST

FULL DISCUSSIONIn Go!

Go Playground