[Java] Pratikum (Procedure dan Function)

  -[Java]  Pratikum (Procedure dan Function)- ini merupakan lanjutan dari postingan : ALGORITMA DAN PEMROGRAMAN MODUL 1 SUB PROGRAM...

 -[Java] Pratikum (Procedure dan Function)-

ini merupakan lanjutan dari postingan :

ALGORITMA DAN PEMROGRAMAN

MODUL 1 SUB PROGRAM (Procedure & Function).

postingan ini merupakan pratikum dan contoh-contoh dari procedure dan function :


a. Praktikum 1 :

public class Contoh1
{
static int saldo = 400;
public static void cetakSaldo() // prosedur krn ada void
{
System.out.println("Saldo = " + (++saldo));
}
public static void main(String args[])
{
cetakSaldo();
saldo = 300;
cetakSaldo();
}
}

Hasil Output :

Saldo 401
Saldo 301






Demikian contoh  Pratikum (Procedure dan Function). semoga bermanfaat.

COMMENTS

BLOGGER

Nama

Artikel,66,Cerita singkat,82,Java,12,SEO,15,Tahukah sobat??,21,Tips dan Trik,15,Tips.....n' Trick.....,14,Tutorial,20,Tutorial Blogger,50,
ltr
item
Blog Salman Syuhada: [Java] Pratikum (Procedure dan Function)
[Java] Pratikum (Procedure dan Function)
https://4.bp.blogspot.com/-BkHYtO3Hn34/T8HOOc31yWI/AAAAAAAABTA/Ydw6TrS1Qz8/s1600/java.jpeg
https://4.bp.blogspot.com/-BkHYtO3Hn34/T8HOOc31yWI/AAAAAAAABTA/Ydw6TrS1Qz8/s72-c/java.jpeg
Blog Salman Syuhada
http://blog.salmansyuhada.com/2012/05/pratikum-procedure-dan-function.html
http://blog.salmansyuhada.com/
http://blog.salmansyuhada.com/
http://blog.salmansyuhada.com/2012/05/pratikum-procedure-dan-function.html
true
5369818979434965955
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy