हिंदी

Give the output of the following program segment: int n = 4279; int d; while(n>0) (d=n%10; System.out.println(d); n=n/100; }

Advertisements
Advertisements

प्रश्न

Give the output of the following program segment:

int n = 4279; int d;
while(n>0)
(d=n%10;
System.out.println(d);
n=n/100;
}
अति संक्षिप्त उत्तर
Advertisements

उत्तर

9

2

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 11. | पृष्ठ ४९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×