English

Evaluate the value of n. if value of p = 5, q = 19 int n = (q – p) > (p – q) ? (q – p) : (p – q) - Computer Applications

Advertisements
Advertisements

Question

Evaluate the value of n. if value of p = 5, q = 19  
int n = (q – p) > (p – q) ? (q – p) : (p – q) 

One Word/Term Answer

Solution

14

Explanation:

= q - p

= 19 - 5

= 14

shaalaa.com
Introduction of Values and Data Types
  Is there an error in this question or solution?
Chapter 1.04: Operators in Java - Review Insight [Page 42]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.04 Operators in Java
Review Insight | Q 5. | Page 42
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×