Advertisements
Advertisements
प्रश्न
Some of the code given below contains errors. Identify the error and correct it. Write the output of the correct/corrected code.
double FZ[] = {3.12, 4.64, 5.57, 6.23, 7.25);
boolean asc = true;
for( int j = 0; j<= 3; j++)
{
if(FZ[j] >FZ[j+1])
{
asc = false;
}
}
System.out.print(" ASC =" + asc);अति संक्षिप्त उत्तर
Advertisements
उत्तर
No Error. Output : ASC = true
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
