+1 vote
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

+1 vote
by kratos
 
Best answer

Output:

0

5

...