changed the file structure

This commit is contained in:
Sage The DM 2024-08-27 10:41:17 +02:00
parent cd81159162
commit b1c3582880
391 changed files with 675 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,18 @@
public class App {
public static int reverse(int number) {
int reversed = 0;
while (number != 0) {
int remainder = number % 10;
reversed = reversed * 10 + remainder;
number = number / 10;
}
return reversed;
}
public static void main(String[] args) {
int number = 12345;
int reversed = reverse(number);
System.out.println("The number is: " + number);
System.out.println("The reversed number is: " + reversed);
}
}