Compile and…

Home Forums C Programming Compile and…

This topic contains 0 replies, has 1 voice, and was last updated by  RamiroCharbonne 8 years, 7 months ago.

  • Author
    Posts
  • #2190

    Hello
    just starting my C experience
    when I compile in Terminal this:
    #include

    int main (int argc, const char * argv[])
    {
    int x;
    x = 1;

    if ((x >= 1 ) && (x< =10)) printf(“The X is in range from one to ten.n”);
    printf(“*The program works just fine!*n”);

    return 0;

    }
    the program runs fine.
    if I then copy exact the same code and copile it in the XCode, I am getting an error ‘No new line at and of file’
    and the error is pointing the } line 15.
    could someone explain please
    thank you kindly

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble