/*
 * 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 M8_hariDoWhile {
    public static void main(String[] args) {
        java.util.Scanner input = new java.util.Scanner(System.in);
        String days[] = new String[7];
        int i=0;
        do {
            System.out.print("Masukkan hari ke-" + (i+1) + ": ");
            days[i] = input.nextLine();
            i++;
        } while (i<days.length);
        
        for (String day : days) {
            System.out.println(day);
        }
    }
}