TOPIC

O codigo não estar dando a resposta certa

irllambs asked 3 years ago

O codigo não estar dando a resposta certa no segundo exemplo

Question solved. Code removed.

This topic was solved and cannot recieve new replies.

  • feodorv replied 3 years ago

    Int1/Int2 is an integer value, not float one:

    5/2 = 2 (not 2.5)

    You can use typecast:

        res1=double(d1)/double(m1);