The tutorial I'm using on LinkedIn is running this program and others without any arguments in the main function. I think I may have Xcode setup issue. Thanks for responding.
Post
Replies
Boosts
Views
Activity
I'm wanting to develop good understanding of programming logic and processes, so I am starting with C as per some recommendations I have seen online.
Here is a program I am trying to build and run that is getting "build failed"
#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);
}