mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-13 16:15:31 +08:00
updated with Maths package
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.lang.*;
|
import java.lang.*;
|
||||||
// count the number of digits in a number
|
// count the number of digits in a number
|
||||||
class CountDigit{
|
class CountDigit {
|
||||||
public static void main(String args[]){
|
public static void main(String args[]) {
|
||||||
Scanner sc = new Scanner(System.in);
|
Scanner sc = new Scanner(System.in);
|
||||||
System.out.print("Enter the number: ");
|
System.out.print("Enter the number: ");
|
||||||
int number = sc.nextInt();
|
int number = sc.nextInt();
|
||||||
|
Reference in New Issue
Block a user