Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.lang.*;
- import java.io.*;
- class Problem1
- {
- public static void main (String[] args) throws java.lang.Exception
- {
- int N;
- Scanner scan = new Scanner(System.in);
- N = scan.nextInt();
- for (int i = 0; i < N; i++) {
- for (int j = 0; j < i; j++) {
- System.out.print(" ");
- }
- for (int j = 0; j < N - i; i++) {
- System.out.print("*");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement