|I wasn't at my Mac when I wrote the last post. Here's a simple introduction to using XCode for a simple C program.|
1. Open XCode.
2. File/New Project.
3. Under "Mac OS X" select "Command line utility".
4. In the right-hand pane select "Standard Tool".
5. Click choose.
6. Give it a name.
7. You now have a simple Project. Expand "Source" and click on "main.c" to see the program.
8. Build/Build to compile the program.
9. Run/Console to open a console so that you can see the output.
10. Run/Run to run the program and see the result in the console window.
You can then change the code in main.c as you wish and repeat the build/run procedures. Add more files to the Project, if you wish, with File/New and then selecting the appropriate file type.
It really is very easy. But to make the most of XCode you'll probably need to buy a book about it, or read a few online tutorials. TBH, the Mac is not the best platform (IMO) to learn programming on, but if it's all you've got it's still OK.