inStar 0 Report post Posted September 12, 2006 (edited) Alopsss... leh mintak tolong x... Cam ne nak kuarkan output cam ni..1) * * * * * * * * * * * * * * *2) * * * * * * * * * * * * * * * Gune loop n ++ atau --... Gune java.. pastu jawapan inverse bg output 2..Plz... He3x.. Mestileh wat kan... Edited September 12, 2006 by inStar Quote Share this post Link to post Share on other sites
unexistance 3 Report post Posted September 12, 2006 ni nm nyer assignmentkalo ko xblaja bt sndri....ssh la ko nk blaja nntp/s: buat topic yg descriptive (bgtau mslh secara ringkas)contoh- masalah jvm- error xxxxxxxxx- xleh compileetc... Quote Share this post Link to post Share on other sites
zolapaloza 0 Report post Posted September 12, 2006 (edited) da sah r ni soalan assignment.. jgn amik jalan mudah beb..cube sndri..br blh majuini soalan asas je ni..ko blh wat nyer.. Edited September 12, 2006 by zolapaloza Quote Share this post Link to post Share on other sites
inStar 0 Report post Posted September 12, 2006 memang r asas kalu dah x leh wat camne... yg aku bg tu dah dapat... tapi aku nak tau coding yang inverse die... aku dah tanya semue budak terer kat fac. aku... tapi dah x leh cam ne... kalu ko pandai tolong adjust coding ni....public class TEST{ public static void main(String[] args){ int i = 0; do{ for (int j= 0; j <= i;j++){ for (int k=3; k >= i; k--){ System.out.print(" ");} System.out.print("*"); } System.out.println(); i++; }while (i <=4); } }tolong susun kan.... huhuhu.... Quote Share this post Link to post Share on other sites
unexistance 3 Report post Posted September 12, 2006 aku bg hint skit 4 = 5 - 1 3 = 5 - 2 2 = 5 - 3 1 = 5 - 4 ni exercise utk korg la, bncg rmi2 p/s: mcm soklan aku sem 1 dl je kekekekeko bdk mn? Quote Share this post Link to post Share on other sites
umarzuki 78 Report post Posted September 23, 2006 memang r asas kalu dah x leh wat camne... yg aku bg tu dah dapat... tapi aku nak tau coding yang inverse die... aku dah tanya semue budak terer kat fac. aku... tapi dah x leh cam ne... kalu ko pandai tolong adjust coding ni....public class TEST{ public static void main(String[] args){ int i = 0; do{ for (int j= 0; j <= i;j++){ for (int k=3; k >= i; k--){ System.out.print(" ");} System.out.print("*"); } System.out.println(); i++; }while (i <=4); } }tolong susun kan.... huhuhu....susah2 print jer baris per baris, kalo xnak kener buat algorithmnyer. otai math bleh lar. Quote Share this post Link to post Share on other sites
padisawah 0 Report post Posted September 25, 2006 haha...mcm soalan asigment aku dulu...aku x nak kasi tau kat sini..nanti ko lagi x pandai..baik pikir idea dan buat algoritma sendiri..kalau x leh buat aku tak tau la..buat malu kat budak matrikulasi je... diorg pun leh buat.. Quote Share this post Link to post Share on other sites
pengguna_komputer 0 Report post Posted September 28, 2006 memang r asas kalu dah x leh wat camne... yg aku bg tu dah dapat... tapi aku nak tau coding yang inverse die... aku dah tanya semue budak terer kat fac. aku... tapi dah x leh cam ne... kalu ko pandai tolong adjust coding ni....public class TEST{ public static void main(String[] args){ int i = 0; do{ for (int j= 0; j <= i;j++){ for (int k=3; k >= i; k--){ System.out.print(" ");} System.out.print("*"); } System.out.println(); i++; }while (i <=4); } }tolong susun kan.... huhuhu....Dah dapat buat ke belum ni.... Quote Share this post Link to post Share on other sites
SHiDi 0 Report post Posted September 29, 2006 public class TEST{ public static void main(String[] args){ int i = 0; do{ for (int j= 0; j <= i;j++){ for (int k=3; k >= i; k--){ System.out.print(" ");} System.out.print("*"); } System.out.println(); i++; }while (i <=4); } }kenapa nak guna 3 variables? 2 je senang.... Kalau aku, aku buat camnie:public static void main(String args[]) { int a; for (a = 0; a <= 4; a++) { for (int b = 0; b <= a; b++) System.out.print("* "); System.out.println(); } System.out.println("\n"); while (a >= 0) { for (int b = 0; b <= (a - 1); b++) System.out.print("* "); System.out.println(); a--; } } Quote Share this post Link to post Share on other sites
deejagothic 1 Report post Posted November 1, 2006 Haha..zaman aku dlu,klu soklan camni..mmg dah ramai yg menembak dah nih... Quote Share this post Link to post Share on other sites