हिंदी

Rewrite the following program segment using logical operators: if (x>5) if (x>y) System.out.println (x+y);

Advertisements
Advertisements

प्रश्न

Rewrite the following program segment using logical operators:

if (x>5)
if (x>y)
System.out.println (x+y);
कोड लेखन
Advertisements

उत्तर

if(x>5 && x>y)
System.out.println(x+y);
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Revision of Class 9 Syllabus - Exercises [पृष्ठ ४९]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 1 Revision of Class 9 Syllabus
Exercises | Q 9. | पृष्ठ ४९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×