public static void runLoop(int x){ do { System.out.print("+"); x--; } while (x > 0); }
public static void runLoop(int x){ while(x !=0){ System.out.print("+"); x--; } }
while
while (x !=0) { System.out.print("+"); if (x < 0) x++; else x--; } System.out.println(" ");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)