Post

Replies

Boosts

Views

Activity

Reply to Xcode basics
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); }
Nov ’24
Reply to Xcode basics
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); }
Replies
Boosts
Views
Activity
Nov ’24
Reply to Xcode will not build function
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.
Replies
Boosts
Views
Activity
Nov ’24