Search:

Type: Posts; User: libchk

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    5,057

    advise on how to properly use pow function

    I have a simple C code that uses 'pow' function pow(x,y) . declared integer variables total, x, y with given values for x and y. I should be expecting a value of 8. See error details below upon...
  2. Replies
    4
    Views
    1,341

    Thanks guys , thanks thebigH it worked

    Thanks guys , thanks thebigH it worked
  3. Replies
    4
    Views
    1,341

    Using == to accept string using array

    Hi noob here,

    Im trying to use boolean == using if condition , below i have a character name with 9 elements, the program will input a string name called james and i set it in if condition, so...
  4. Replies
    3
    Views
    1,146

    thanks

    thanks mat, it works fine


    bt ~ $ gcc -lm -o ma ma.c
    bt ~ $ ./ma
    2 to the power of 5 is equal to 32
  5. Replies
    3
    Views
    1,146

    exponential question

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

    main ()

    int a=2;int b=5; int c; c = pow(a,b);

    printf("&#37;d to the power of %d is equal to %d\n",a,b,c);

    }
Results 1 to 5 of 5