adding old solved challenges
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user