Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class patt2 {
- public static void main(String[] args) {
- int i,j, n=5;
- for(i=0;i<=n;i++)
- {
- for(j=i;j<n;j++)
- {
- System.out.print(" ");
- }
- for(j=0;j<i;j++)
- {
- System.out.print("* ");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement