We get this compilation error, but I canβt understand why. The error message has been commented out.
float remainingAngle(float angleA, float angleB); { // Expected identifier or '(' return 180 - (angleA + angleB); } int main (int argc, const char * argv[]) { float angleA = 30.0; float angleB = 60.0; float angleC = remainingAngle(angleA, angleB); printf("The third angle is %.2f", angleC); return 0; }
source share