Skip to content

Commit f6d6725

Browse files
Added indentation in the "main" function statement block
1 parent f44f2c1 commit f6d6725

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Maths/Factorial.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
public class Factorial {
55
public static void main(String[] args) { //main method
6-
int n = 1;
7-
Scanner sc= new Scanner(System.in);
8-
System.out.println("Enter Number");
9-
n=sc.nextInt();
10-
System.out.println(n + "! = " + factorial(n));
6+
int n = 1;
7+
Scanner sc= new Scanner(System.in);
8+
System.out.println("Enter Number");
9+
n=sc.nextInt();
10+
System.out.println(n + "! = " + factorial(n));
1111
}
1212

1313
//Factorial = n! = n1 * (n-1) * (n-2)*...1

0 commit comments

Comments
 (0)