diff --git a/src/main/java/com/ordestiny/tdd/loop/Do While Loop b/src/main/java/com/ordestiny/tdd/loop/Do While Loop new file mode 100644 index 0000000..f255cb7 --- /dev/null +++ b/src/main/java/com/ordestiny/tdd/loop/Do While Loop @@ -0,0 +1,13 @@ +// This a code for print all value of x with increasing 1 and upto 20 +public class Test { + + public static void main(String args[]) { + int x = 10; + + do { + System.out.print("value of x : " + x ); + x++; + System.out.print("\n"); + }while( x < 20 ); + } +}