style: enable MultipleVariableDeclarations in checkstyle (#5175)

Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
This commit is contained in:
vaibhav9t1
2024-05-25 23:48:27 +05:30
committed by GitHub
parent 44ce6e7b0d
commit 9eaa2bb756
82 changed files with 299 additions and 121 deletions

View File

@@ -7,7 +7,8 @@ final class Krishnamurthy {
}
static int fact(int n) {
int i, p = 1;
int i;
int p = 1;
for (i = n; i >= 1; i--) {
p = p * i;
}
@@ -16,7 +17,9 @@ final class Krishnamurthy {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a, b, s = 0;
int a;
int b;
int s = 0;
System.out.print("Enter the number : ");
a = sc.nextInt();
int n = a;