Program:
- public class segibintang{
- public static void main(String[]args){
- for(int a=1;a<=10;a++){
- for(int b=1;b<=a;b++){
- System.out.print("*");
- }
- System.out.print("\n");
- }
- }
- }
Flowchar Perulangan |
Aplikasi Menghitung Volume Tabung, Karya Zahid Mushofainal A X RPL |
Aplikasi Konversi Suhu, By : Kenny Marcino X RPL |
Tampilan JOptionPane |
No
|
Components
|
Name
|
1
|
JTextField
|
txtPanjang
|
2
|
JTextField
|
txtLebar
|
3
|
JTextField
|
txtTinggi
|
4
|
JTextField
|
txtHasil
|
5
|
JButton
|
btnHitung
|
Contoh Jumlah yang dimasukkan = 5600 ekor bibit ayam |
Pakan Ayam = 5600 * 3 |
Ouput program di Command Prompt |