+2 votes
in Class 12 by kratos

Predict the output of the following code:

int n=4,f=0,i;

for(i=1;i<=n;i++)

{

f=f*i;

}

jTextField1.setText(""+f);

jTextField2.setText(""+i);

1 Answer

+2 votes
by kratos
 
Best answer

The Output is:

0

5

...