Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Java # Faktöriyel
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Scanner klv=new Scanner(System.in); int sayi=klv.nextInt(); int sonuc=1; for(int i=1;i<=sayi;i++){ sonuc=sonuc*i; } System.out.println("Sonuç = "+sonuc); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Eckhart generator with real id
Basic tree implementation
My1
Problem 1 : New Wave Sale
Printing
Memory cleanup
Quadratic_Equation.java
Reverse a String
Vikas
Votes JAVA
Please log in to post a comment.