Do while to for conversion
ICSE2017
Problem Statement - do loop based output writing
Write the output of the following code segment:
char ch; int x = 97; do { ch = (char) x; System.out.print(ch + " "); if (x % 10 == 0) break; ++x; } while (x <= 100);
Solution
sunmitra| Created: 5-Apr-2018 | Updated: 16-Apr-2019|ICSE2015