mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-09 12:11:28 +08:00
Added indentation in the "main" function statement block
This commit is contained in:
@ -4,9 +4,9 @@ import java.util.*; //for importing scanner
|
|||||||
public class Factorial {
|
public class Factorial {
|
||||||
public static void main(String[] args) { //main method
|
public static void main(String[] args) { //main method
|
||||||
int n = 1;
|
int n = 1;
|
||||||
Scanner sc= new Scanner(System.in);
|
Scanner sc= new Scanner(System.in);
|
||||||
System.out.println("Enter Number");
|
System.out.println("Enter Number");
|
||||||
n=sc.nextInt();
|
n=sc.nextInt();
|
||||||
System.out.println(n + "! = " + factorial(n));
|
System.out.println(n + "! = " + factorial(n));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user