Loading...
Convert the following do…while loop to for loop: int x=10; do {x– –; System.out.print(x); }while (x>=1);
Rewrite the following do while program segment using for: x = 10; y = 20; do { x++; y++; } while (x<=20); System.out.println(x * y );
© 2026 PadhAiPro. This question is provided for educational purposes.