This commit is contained in:
2026-03-15 20:40:00 +05:00
parent 06a34a1406
commit 775b21a9c4
5 changed files with 100 additions and 0 deletions

14
lr9/task_1/e1.java Normal file
View File

@@ -0,0 +1,14 @@
import java.util.Scanner;
class Main {
public static void m(int x){
System.out.println("x = " + x);
if ((2 * x + 1) < 20){
m(2 * x + 1);
}
}
public static void main(String[] args) {
m(1);
}
}