/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Matkul;
/**
*
* @author KUMAL
*/
public class M7_namaDoWhile {
public static void main(String[] args) {
java.util.Scanner input = new java.util.Scanner(System.in);
System.out.print("Masukkan nama: ");
String nama = input.nextLine();
int i=1;
do {System.out.println(nama); i++;}
while (i<=100);
}
}
Like this:
Like Loading...
Related