public class Fak {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int F=1,n;
System.out.println("INPUT NILAI FAKTORIAL=");
n=input.nextInt();
for (int i=1;i<=n;i++) F=i;
System.out.println(n+" !="+F);
}
}
Jangan Pernah Menyerah
0 komentar:
Posting Komentar