मराठी

Predict the output: int m = 3, n = 5, p = 4; if (m == n) andand (n != p) { System.out.println(m * n); System.out.println(n % p); } if ((m != n) || (n == p)) { System.out.printIn(m + n); - Computer Applications

Advertisements
Advertisements

प्रश्न

Predict the output:

int m = 3, n = 5, p = 4; 
if (m == n) && (n != p)
   {
   System.out.println(m * n); 
   System.out.println(n % p); 
   }
if ((m != n) || (n == p)) 
   {
   System.out.printIn(m + n); 
   System.out.println(m − n); 
थोडक्यात उत्तर

उत्तर

8

−2

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ ९९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.08 Conditional Statements in Java
EXERCISES | Q III. 1. | पृष्ठ ९९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×