Fixed the repository

This commit is contained in:
Sage The DM 2024-06-24 08:18:59 +02:00
parent d3092e64bf
commit b2cded4072
318 changed files with 8017 additions and 144 deletions

View file

@ -0,0 +1,16 @@
import java.util.Scanner;
public class App {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Please enter a postive number");
int number = scan.nextInt();
int numberDigits = 0;
for (int digits = 0; number > 0; digits++) {
number = number / 10;
numberDigits++;
}
System.out.println("Your number contains: " + numberDigits + " digit(s).");
}
}