Rabu, 08 September 2010

MUSIC CHART 11th of September 2010

1. Love The Way You Lie - Eminem Featuring Rihanna
2. Teenage Dream - Katy Perry
3. Dynamite - Taio Cruz
4. I Like It - Enrique Iglesias Featuring Pitbull
5. DJ Got Us Fallin' In Love - Usher Featuring Pitbull

ALGORITHM AND PROGRAMMING

FOR PRINCIPLES

LOOP:
1. Kenali step / code yg diulang
2. Tentukan kondisi perulangan (berapa kali / sampai kapan)


JAVA: (ulang nulis 1 sesuai input)
for(int i=0;i?{
System.out.println("1");
}


i=counter: variable yg menghitung berapa kali ngulang
i++ : i=i+1

2. input=5
output=1,2,3,4,5

ulang: nulis angka sll nambah 1
kondisi: ulang sebanyak input

for(int i=0; i {
System.out.println(i+1);
}


What I don't understand:
Gmana nulis while di notepad++??