मराठी

Rewrite the following code using the if-else statement: int m = 400; double cl). = (m > 300) ? (m/10.0) * 2; (m/20.0) - 2; - Computer Applications

Advertisements
Advertisements

प्रश्न

Rewrite the following code using the if-else statement:

int m = 400;
double cl). = (m>300) ? (m/10.0) * 2; (m/20.0) - 2;
थोडक्यात उत्तर

उत्तर

int m = 400;
double ch;
if (m>300)
   ch = (m/10.0)*2;
else
   ch = (m/20.0) - 2;
shaalaa.com
Introduction of Conditional Statements in Java
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×
Our website is made possible by ad-free subscriptions or displaying online advertisements to our visitors.
If you don't like ads you can support us by buying an ad-free subscription or please consider supporting us by disabling your ad blocker. Thank you.