I have to write a program to find the hypotenuse of a right triangle in 8086. and I'm suck. Please please help.

in assembly language?

yes assembly 8086 code

        finit

        fld     [Leg1]
        fld     [Leg1]
        fmulp

        fld     [Leg2]
        fld     [Leg2]
        fmulp
        faddp
        fsqrt
        fstp    [Hypotenuse]

Leg1    dt 3.0
Leg2    dt 4.0
Hypotenuse dt ?
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.