I read some of the threads on here… it only confused me more as to what I am doing wrong.
Below is my code… can someone please explain to me what I’m doing wrong and why it is wrong?
Thank you so very much!
void remainingAngle(float answer)
float thirdangle = 180 - answer;
printf(“180 - %f is %f\n”, answer, thirdangle);
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\n", angleC); return 0;