Selasa, 23 Oktober 2018

Loop While

Latihan 4 Loop While

public class Lt_4_loop_while{
public static void main (String[] args){
int x = 2;
while(x<20)
{
System.out.print("Nilai Dari x adalah "+ x);
x++;
System.out.print("\n");
}
}
}

outputnya :


Tidak ada komentar:

Posting Komentar