Loading...
Rewrite the following do while program segment using for: x = 10; y = 20; do { x++; y++; } while (x<=20); System.out.println(x * y );
Convert the given loop into exit controlled loop. int a,b; for ( a=10 ,b=1; a>=1 ;a-=2) { b+=a; b++; } System.out.print(b);
© 2026 PadhAiPro. This question is provided for educational purposes.