From f6d67253e3d272b35076d844c5c93fa86aa30cf0 Mon Sep 17 00:00:00 2001 From: Vikrant khedkar Date: Fri, 8 May 2020 10:38:05 +0530 Subject: [PATCH] Added indentation in the "main" function statement block --- Maths/Factorial.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Maths/Factorial.java b/Maths/Factorial.java index 07704161..2ade4132 100644 --- a/Maths/Factorial.java +++ b/Maths/Factorial.java @@ -3,11 +3,11 @@ import java.util.*; //for importing scanner public class Factorial { public static void main(String[] args) { //main method - int n = 1; -Scanner sc= new Scanner(System.in); -System.out.println("Enter Number"); -n=sc.nextInt(); - System.out.println(n + "! = " + factorial(n)); + int n = 1; + Scanner sc= new Scanner(System.in); + System.out.println("Enter Number"); + n=sc.nextInt(); + System.out.println(n + "! = " + factorial(n)); } //Factorial = n! = n1 * (n-1) * (n-2)*...1