tugas algoritma

1.langkah pertama buat scripnya seperti dibawah ini menggunakan notepad

public class programdevioktaviani {
public static void main (String[] args) {
for(int x= 1; x<= 50; x+= 2) {
System.out.println(x);
}
}
}

2.kemudian save as di (d) janagn lupa di akhir nama folder di beri .java
seperti.
programDevioktaviani.java

3.jangan di close dulu notepadnya
4.kemudian buka command prompt
5.kemudian tulis d: lalu enter
kemudian masukan nama folder scripnya
c:\Users\user>d:
D:\>javac programDevioktaviani.java
D:\>java programDevioktaviani

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s