import java.util.Scanner; public class bintang { public static void main(String[]args) { int col, row, a,i ; Scanner baca = new Scanner(System.in); System.out.print("masukan besar segitiga: "); a = baca.nextInt(); System.out.println(); for(row = 0 ; row < a; row++) { for(col = 0; col <=row; col++) { System.out.print("*"); } System.out.println(); } for(i=0; i<=a; i++) { for( col=a; col>i; col--) { System.out.print(" "); } for( row=1; row<=i; row++) { System.out.print("*"); } System.out.println(); } for(i=0; i<=a; i++) { for( col=a-i; col>0; col--) { System.out.print(" "); } for( row=1; row
Tuesday, March 25, 2014
Membuat Segitiga dengan Java Console
Cara membuat segitiga dengan java Console
Subscribe to:
Post Comments (Atom)
golden gooses
ReplyDeletelongchamp handbags
jordan shoes
nike vapormax
off white hoodie
yeezy shoes
lebron 16
nike sneakers
nike air max 95
nike shox for men
yeezy supply
ReplyDeletegolden goose sneakers
goyard wallet
golden goose outlet
golden goose sale
golden goose sneakers
yeezy shoes
goyard handbags
goyard handbags
goyard bags