mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 06:23:08 +08:00
Format code with prettier (#3375)
This commit is contained in:
@ -11,7 +11,9 @@ import java.util.ArrayList;
|
||||
public class DecimalToAnyBase {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
|
||||
BufferedReader br = new BufferedReader(
|
||||
new InputStreamReader(System.in)
|
||||
);
|
||||
System.out.println("Enter the decimal input below: ");
|
||||
int decInput = Integer.parseInt(br.readLine());
|
||||
System.out.println();
|
||||
@ -22,7 +24,13 @@ public class DecimalToAnyBase {
|
||||
|
||||
System.out.println("Decimal Input" + " is: " + decInput);
|
||||
System.out.println(
|
||||
"Value of " + decInput + " in base " + base + " is: " + convertToAnyBase(decInput, base));
|
||||
"Value of " +
|
||||
decInput +
|
||||
" in base " +
|
||||
base +
|
||||
" is: " +
|
||||
convertToAnyBase(decInput, base)
|
||||
);
|
||||
|
||||
br.close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user