मराठी

Rewrite the following using ternary operator. if (income < 10000) tax = 0; else tax = 12; - Computer Applications

Advertisements
Advertisements

प्रश्न

Rewrite the following using ternary operator.

if (income < 10000)
tax = 0; 
else
tax = 12; 
एका वाक्यात उत्तर

उत्तर

int tax = (income < 10000) ? 0 : 12
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.04 Operators in Java
EXERCISES | Q V. 8. (c) | पृष्ठ ४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×