Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
1.
Write the output of the following codes:
(a) int j = 0, result = 1; for(j = 3; j < = 5; j++) { result = j; for(g = 5; g >=3; g - -) { result = result * g; } System.out.print(“ \ n Result is “ + result); } System.out.print (“ \ n Out Of The Loop Value of (j,g) are “ + j + “ , “ + g);