Loop Kata
public class LoopBansal {
public static void main (String[] args){
String kali1= "STMIK Bani SAleh";
String kali2= "Pemrogaman 2";
for(int i=1;i<=3;i++){
System.out.println(kali1);
for (int j=1;j<=3;j++){
System.out.println(kali2);
}
System.out.println( "" );
}
}
}
Outputnya
Tidak ada komentar:
Posting Komentar