English

Write the Java expression for the following: −b+b2-4ac2a - Computer Applications

Advertisements
Advertisements

Question

Write the Java expression for the following:

`(−b+sqrt(b^2 - 4ac))/(2a)`

One Line Answer

Solution

(-b + Math.sqrt(b * b - 4 * a * c)) / 2.0 * a
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 43]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.04 Operators in Java
EXERCISES | Q III. 3. | Page 43
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×