I undertand the use of functions but I keep getting an error!
Here is my code:
//
// main.c
// Triangle
//
//
// Copyright © 2015 Big Nerd Ranch. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
static float totalAngle = 180.0;
float remainingAngle(float angleA, float angleB) {
float angleLeft = totalAngle - (angleA + angleB);
return angleLeft;
}
int main(int argc, const char * argv[]) {
float angleA = 30.0;
float angleB = 60.0;
float angleC = remainingAgle(angleA, angleB);
printf(“The third angle is %.2f\n”, angleC);
return 0;
}
–
What am I doing incorrectly? I do not want to continue reading further on until I solve this!