English

Write Java expression for: |a+b|a2+b2 - Computer Applications

Advertisements
Advertisements

Question

Write Java expression for:

`(|a + b|)/(sqrt(a^2 + b^2))`

One Line Answer

Solution

double d = Math.abs(a+b)/(Math.sqrt(a*a+b*b));
shaalaa.com
Methods of Math Class
  Is there an error in this question or solution?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×