Untitled

Anonymous
plain_text
11/28/2024 4:38 AM
620 B
15
Indexable
package Jurnal10;

import java.util.Scanner;

public class TP01 {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int jmlPeserta = s.nextInt();
    String[] peserta = new String[jmlPeserta];
    for (int i = 0; i < peserta.length; i++) {
        peserta[i] = s.next();
    }
    int bulan = 1;
    for (String p : peserta) {
        System.out.println("Bulan "+bulan+": "+p);
        bulan++;
    }
  }  
}
Editor is loading...
Leave a Comment