Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner scan=new Scanner(System.in);
- for(int i=1;i<=10;i++)
- {for(int j=10;j>=i;j--){
- System.out.print(" ");
- }
- for(int k=1;k<=i;k++){
- System.out.print(" *");
- }
- System.out.println();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement