1.

The following code has error(s). Rewrite the correct code underlining all the corrections made :int n=15,int i=10,x=1;do;{x=x*i;i++;while[i<=n]jTextField1.settext(""+x);

Answer»

int n=15;

int i=10,x=1;

do;

{

x=x*i;

i++;

}while(i<=n) ;

jTextField1.setText(""+x);

( ½ Mark each for any four corrections)



Discussion

No Comment Found

Related InterviewSolutions