Search:

Type: Posts; User: cubbies5

Search: Search took 0.00 seconds.

  1. Thread: Prime numbers

    by cubbies5
    Replies
    11
    Views
    2,497

    This is the new code i've developed but the...

    This is the new code i've developed but the problem im having is that it only prints the bounds inputted, 0, and 1. Any suggestions?


    #include <stdio.h>
    void getinput(int*,int*);
    void...
  2. Thread: Prime numbers

    by cubbies5
    Replies
    11
    Views
    2,497

    Unfortunately it doesn't work :-/ All i can get...

    Unfortunately it doesn't work :-/
    All i can get it to print are the boundaries
  3. Thread: Prime numbers

    by cubbies5
    Replies
    11
    Views
    2,497

    So in order to prevent that infinite loop what...

    So in order to prevent that infinite loop what should I do instead?
  4. Thread: Prime numbers

    by cubbies5
    Replies
    11
    Views
    2,497

    Thanks for the replies. I find smokeyangels code...

    Thanks for the replies.
    I find smokeyangels code to be a little confusing/vague sorry. Flag??
    so the more efficient code would be:


    int numbers(int i, int j)
    {
    for i++
    for 1<j++ &&...
  5. Thread: Prime numbers

    by cubbies5
    Replies
    11
    Views
    2,497

    Prime numbers

    I am terrible with coding, so hopefully one can help.

    I am in a basic coding computer science class, so I can only use codes involving do while loops, while loops, and if statements.

    The...
Results 1 to 5 of 5