package nambers;
import java.util.Scanner;
public class nambers {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int number=scan.nextInt();
int factorial=1;
for (int a=1;a<=number;a++){
factorial=factorial*a;
}
System.out.println(factorial);
}
}
1 Response
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.