English

Predict the output in the following case: Math.sqrt (−36) - Computer Applications

Advertisements
Advertisements

Question

Predict the output in the following case:

Math.sqrt (−36)

One Line Answer

Solution

The square root of a negative number can't be determined. Hence, the output will be NaN.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.06: Input in Java - Review Insight [Page 65]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.06 Input in Java
Review Insight | Q 2. (a) | Page 65
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×