public static void main(String[] args) { int r =in.nextInt(); int b =0; int c =1; while (c<=r){ b++; b++; c++; System.out.println(b); } } How to change the code to display data in one line? If there are errors in the code please tell me how to do it.
System.out.println(b)code was doing? - VladD 5:56 pm