Search:

Type: Posts; User: Tokalosh

Search: Search took 0.01 seconds.

  1. Thread: fibonacci

    by Tokalosh
    Replies
    1
    Views
    425

    fibonacci

    Hi. im trying to sum even fibonacci numbers only. ie. 0 2 2 4 6 10 16 ect.. could someone indicate where i've gone wrong.



    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
  2. fixed

    it was a simple loop that had to be added.



    #include <stdio.h>
    #include <stdlib.h>
    /* summing the first 1000 numbers of multiples 3 & 5 */


    int main ()
  3. Find the sum of all the multiples of 3 or 5 below 1000.

    NEVERMIND solved it. Dont know how to take this down.

    if i put in 10, i get a return of 24 instead of 23, can someone tell me where im going wrong.



    #include <stdio.h>
    #include <stdlib.h>
  4. Replies
    1
    Views
    465

    building a password

    Hi.

    Could someone please explain to me why this is wrong and how to fix it. thank you.





    int main()
    {
  5. Replies
    7
    Views
    934

    Thank you for the help.

    Thank you for the help.
  6. Replies
    7
    Views
    934

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    float b;
    float a;
    float c;
    float z;
    float r;
    int main()
    {
  7. Replies
    7
    Views
    934

    Ok I put the header in and changed the printf but...

    Ok I put the header in and changed the printf but still doesn't work.
  8. Replies
    7
    Views
    934

    quadratic equation

    Hi. the return values are not coming out properly. Any reasons why would be a big help.


    #include <stdio.h>
    #include <stdlib.h>


    float b;
    float a;
    float c;
  9. Replies
    4
    Views
    2,417

    haha i can't believe i missed that, thanks man!

    haha i can't believe i missed that, thanks man!
  10. Replies
    4
    Views
    2,417

    shorthand if else

    Hi.
    my code isnt running, i think it may have something to do with the first printf and scanf functions. How do i transfer the inputted number to the following statement and have it run properly.
    ...
  11. Thread: New to C

    by Tokalosh
    Replies
    3
    Views
    669

    thank you.

    thank you.
  12. Thread: New to C

    by Tokalosh
    Replies
    3
    Views
    669

    New to C

    Hi. Could someone tell me if this is possible? If so why isnt it running?
    I want to know if you can use if statements in cases.


    int main(void);
    {
    int x;
    printf("please enter a...
Results 1 to 12 of 12