DEV Community

Discussion on: Daily Challenge #84 - Third Angle of a Triangle

Collapse
 
ianonjuguna profile image
Iano Njuguna

Kept it simple

#include <stdio.h>

int other_angle(int a, int b) 
{
    return(180 - a - b);
}

Enter fullscreen mode Exit fullscreen mode