हिंदी

Convert the following do-while loop to a for loop: int x=−10; do {x−−; System.out.print(x); }while (r>=1);

Advertisements
Advertisements

प्रश्न

Convert the following do-while loop to a for loop:

int x=−10;
do
{x−−;
System.out.print(x);
}while (r>=1);
कोड लेखन
Advertisements

उत्तर

int x=10;
do
System.out.print(x);
}while (x>=1);'
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 15. | पृष्ठ ५०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×