adding old solved challenges

This commit is contained in:
2024-10-15 11:03:57 -04:00
parent fa5ac5e089
commit 7ecd444efb
107 changed files with 1056 additions and 0 deletions
Binary file not shown.
+16
View File
@@ -0,0 +1,16 @@
import java.util.Scanner;
public class StairCase {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = n; i > 0; i--) {
for (int k = 1; k <= n; k++) {
System.out.print(k < i ? " " : "#");
}
System.out.println();
}
sc.close();
}
}