Xcode will not build / run

No luck with my first post in getting a response despite 24 views. Will try again.

I am trying to build/run this main() function in C language. Keep getting build fail message.

#include <stdio.h> #include <math.h>

int main() { float a,b;

printf("Enter value for A: ");
scanf("%f" ,&a);
printf("Enter value for B: ");
scanf("%f" ,&b);

printf("%f + %f = %f\n",a,b,a+b);
printf("%f - %f = %f\n",a,b,a-b);
printf("%f * %f = %f\n",a,b,a*b);
printf("%f / %f = %f\n",a,b,a/b);
printf("%f to the power of %f = %f\n",a,b,pow(a,b));
printf("The square root of %f is %f\n",a,sqrt(a));
printf("The square root of %f is %f\n",a,sqrt(b));

return(0);

}

ANY feedback appreciated on why Xcode does not work here. I am a beginning programmer.

Thanks.

I just responded in your other thread.

— Ed Ford,  DTS Engineer

Xcode will not build / run
 
 
Q