sum+=j*k sum=sum+k; } k++; } } System.out.println(“Sum=” + sum); j++; } System.out.println(“Sum=” + sum); int j=0,k=0, r=10; int j=0,k=0, r=10; for (j=1;j<=5;j++) for (j=1;j<=5;j++) { { if(r<15) if(r<15) r=r+j+2; r=r + j + 2; else else r=r%5+j*2; r =r j -2 – } } System.out.println(r); System.out.println(r); int p=0,k=0; double p=0.0,k=0.0; if p==0 while(p<=28) System.out.println(5); { k=k+p; p+=4.5; } System.out.println(k); System.out.println(p);
sum+=j*k } } System.out.println(“Sum=” + sum); sum=sum+k; k++; } j++; } System.out.println(“Sum=” + sum); int j=0,k=0, r=10; for (j=1;j<=5;j++) { if(r<15) r=r+j+2; else r=r%5+j*2; } System.out.println(r); int j=0,k=0, r=10; for (j=1;j<=5;j++) { if(r<15) r=r + j + 2; else r =r – j -2 } System.out.println(r); int p=0,k=0; if p==0 System.out.println(5); double p=0.0,k=0.0; while(p<=28) { k=k+p; p+=4.5; } System.out.println(k); System.out.println(p);