1.

The following code has error(s). Rewrite the correct code underlining all the corrections made :int n=5int i=1, f=1do;{f=f*i;i++;while(j<=n)jTextField1.setText(" " +f);

Answer»

int n=5, i = 1, f = 1;

do

{

f = f*i;

i++;

}   while(i<=n);

jTextField1.setText(" "+f);



Discussion

No Comment Found