TOPIC

O codigo não estar dando a resposta certa

Irlla Martins Barbosa da Silva asked 10 months 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 10 months 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);