I dont know where im going wrong with the code

 Akzeptierte Antwort

Sudheer Bhimireddy
Sudheer Bhimireddy am 11 Aug. 2020

0 Stimmen

The left-hand side should be the variable alone. Change that to
c = sqrt(adj^2 + opp^2)
c^2 cannot be the variable name as it has mathematical operator, on the other hand, c2 is a valid variable name.

2 Kommentare

thankyou
i fixed it and it worked so thankyou

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by