Skip to content

Commit 4678ae1

Browse files
authored
Merge pull request mayankgb2#10 from lakshay-droid/patch-2
Added odd star pattern
2 parents 2759f2e + 907bec7 commit 4678ae1

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

oddpattern.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://www.facebook.com/lakshay.gulati.5/posts/3439658002768650
2+
# Subscribed by Lakshay
3+
4+
public class oddpattern {
5+
6+
public static void main(String[] args) {
7+
int j,n=7;
8+
for(int i=0;i<4;i++){
9+
for (j = 1 ; j<=(n-(2*i));j++){
10+
System.out.print(" "+j);}
11+
System.out.println();
12+
}
13+
14+
15+
}
16+
}
17+
18+

0 commit comments

Comments
 (0)