More Related Content
PPTX
Aplikasi sistem informasi pada fungsi fungsi organisasi DOCX
Laporan Final Project - Aplikasi Sistem Informasi Rental CD - Netbeans DOCX
Java (Netbeans) - Looping - Object Oriented Programming DOC
Konsep & storyboard game multimedia (puzzle alphabet) DOCX
Tugas algoritma fibonacci PDF
Kode program layout xml dan tampilan ui graphical (menggunakan eclipse) DOCX
Pemrograman Mobile - Try Catch PPTX
Multimedia 2D (Game) - Puzzle alphabet Viewers also liked
DOCX
Laporan pembuatan Final Project (Java - Netbeans) "Rental CD" PDF
menu strip - visual basic PDF
Java (Netbeans) - Exception handling - Object Oriented Programming DOC
Java (Netbeans) - Abstract & Interface - Object Oriented Programming PDF
makalah sistem operasi - android vd ios PDF
Laporan praktikum 3 - Sistem Operasi Internal & External Command (Lanjutan) PDF
Laporan Praktikum - Sistem Operasi - Perintah Internal Command DOCX
DOCX
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming) PDF
Laporan praktikum 2 - Sistem Operasi - internal command - copy con, rename,... Tugas algoritma faktorial
- 1.
- 2.
LISTING PROGRAM
/*
* Tochange this template, choose Tools | Templates
* and open the template in the editor.
*/
package faktorial.pkg5;
/**
*
* @author mumu
*/
public class Faktorial 5 {
/**
* @param args the command line arguments
*/
static void faktorial(int i) {
int hasil = 1;
for (int j = i; j > 0; j--) {
if (j == 1) {
System.out.print(j + " = ");
} else {
System.out.print(j + " * ");
}
hasil = hasil * j;
}
System.out.println(hasil);
}
- 3.
public static voidmain(String[] args) {
// TODO code application logic here
faktorial(5);
}
}
PRINTSCREEN PROGRAM