Search:

Type: Posts; User: Salem

Search: Search took 0.30 seconds.

  1. Thread: Dividers

    by Salem
    Replies
    8
    Views
    5,790

    Mmmm, faster you say - how about turning on the...

    Mmmm, faster you say - how about turning on the optimiser?


    $ gcc baz.c -lm
    $ time ./a.out
    1000000
    720720
    25

    real 0m35.909s
  2. Thread: Dividers

    by Salem
    Replies
    8
    Views
    5,790

    Step 1 is learn how to indent code. It helps...

    Step 1 is learn how to indent code. It helps everyone (including you) to figure out what is going on.


    #include <stdio.h>
    #include <math.h>

    int main()
    {
    int n, i, br, max, p, k;
Results 1 to 2 of 2