Search:

Type: Posts; User: Inti

Search: Search took 0.01 seconds.

  1. Thread: Function

    by Inti
    Replies
    9
    Views
    1,261

    matsp: Could you give me an example of how...

    matsp:


    Could you give me an example of how it should be with % and /??

    So, it is wrong or what?? Now Iīm getting confused....:confused:
  2. Thread: Function

    by Inti
    Replies
    9
    Views
    1,261

    Ok, but it should work too that way. In the...

    Ok, but it should work too that way.

    In the case M=4, this is what happens:



    1234 4
    0
  3. Thread: Function

    by Inti
    Replies
    9
    Views
    1,261

    Function

    This program reads an integer n of M digits (defined at the beginning) and a one-digit integer d; if d is in n it has to print n and and the sum (+) symbol below every occurance of d.
    It compiles,...
  4. Replies
    4
    Views
    1,783

    Yes, I totally passed that out... and the...

    Yes, I totally passed that out... and the compiler said nothing.

    Regarding the prototype issue, why is that?? Why should I write the function again as a prototype?
    Iīm aware that when I write a...
  5. Replies
    4
    Views
    1,783

    Another function not working...

    This one compiles but gives me an error when I execute it.
    Itīs supposed to return 0 if a number is prime and 1 if itīs not.

    Translation form spanish:
    esprimo=isprime
    ingrese un entero=input an...
  6. Replies
    2
    Views
    1,565

    excellent! Now I must think why it doesnīt...

    excellent!

    Now I must think why it doesnīt work the other way...

    thanks!!!!
  7. Replies
    2
    Views
    1,565

    Function not working

    This program should return the number of roots of a 2nd degree polynomial, but it always returns 2 roots, whatever coefficients I put.
    Whatīs wrong??

    Itīs in spanish, so RAICES=ROOTS, and disc...
Results 1 to 7 of 7