Search:

Type: Posts; User: psynt555

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,216

    thanks! it worked and thanks salem i keep...

    thanks! it worked and thanks salem i keep forgetting.

    what is the importance of putting return 0; at the end if it works without it? thanks
  2. Replies
    7
    Views
    1,216

    Any idea why this POW isn't working?

    I've been trying to grasp POW in C.

    the code i have is:



    #include <stdio.h>
    #include <math.h>
    int main()
    {
  3. Thankyou

    I tried the %lf thing and it didn't work, of course due to my compiling not being proper, so once I tried the compiling WITH your recommendation of using %lf instead of %f, it worked.

    So thankyou...
  4. edited above, different problem has come up. ...

    edited above, different problem has come up.

    it won't compile


    /tmp/ccgGoNoC.o: In function `hypo':
    hypotenuse.c:(.text+0x55): undefined reference to `sqrt'
    collect2: ld returned 1 exit...
  5. Can someone tell me why this code isn't working please?

    EDIT!!

    It doesn't even compile

    it says:

    /tmp/ccgGoNoC.o: In function `hypo':
    hypotenuse.c:(.text+0x55): undefined reference to `sqrt'
    collect2: ld returned 1 exit status
  6. Replies
    2
    Views
    6,876

    commission/salary calculator problem

    hi guys, this is the question i have been given:

    A large company pays its salespeople on a commission basis. The sales people receive £200 per week, plus 9% of their gross sales for that week. ...
  7. Replies
    2
    Views
    1,986

    whileloop/running total problem

    hi i have been asked to input 2 integers, a drivers MILES and LITRES of fuel they have used.. i am then meant to printf the miles per litre for that specific entry AND a running total of the combined...
Results 1 to 7 of 7