document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import java.util.Scanner ;
  2.  
  3. public class DoWhile {
  4. public static void main (String[] args) {
  5. Scanner input = new Scanner (System.in) ;
  6. System.out.print ("Masukkan banyak looping : ") ;
  7. int x = input.nextInt() ;
  8. int y = 1 ;
  9. do {
  10. System.out.println ("Value : " + y) ;
  11. y++ ;
  12. }while (x>=y);
  13. }
  14. }
');