Search:

Type: Posts; User: lamanna

Search: Search took 0.00 seconds.

  1. Replies
    17
    Views
    51,771

    Yep you're getting there. Start the loop with "a...

    Yep you're getting there.
    Start the loop with "a = 1". Also make sure your other loop starts at 1. Also, I think "==" takes precedence over "%", so it's best to modify your if statement to:


    if...
  2. Replies
    17
    Views
    51,771

    You should modify your loops so they start at 1...

    You should modify your loops so they start at 1 instead of 0. Using 0 with the mod operator(%) will probably crash your program.

    To calculate a prime number in the simplest way you need to check...
  3. Replies
    17
    Views
    51,771

    I'm new to C so I hope this advice is useful. :)...

    I'm new to C so I hope this advice is useful. :)

    When using "#define MAX 1000;" you don't need a semi-colon also declaring functions is done outside the main function. You'll also need to...
Results 1 to 3 of 3