We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7976819 commit f75bafcCopy full SHA for f75bafc
Programs/PrintPattern.java
@@ -0,0 +1,24 @@
1
+/**
2
+ * Program to print a pattern using nested for loops
3
+ * eg:- *
4
+ * * *
5
+ * * * *
6
+ * * * * *
7
+ * * * * * *
8
+ * @author arshcoder13 - https://github.com/arshcoder13/
9
+ **/
10
+
11
+public class PrintPattern {
12
13
+ public static void main(String args[]){
14
15
+ for(int i=1;i<=5;i++){
16
+ for(int j=1;j<=i;j++){
17
+ System.out.print("* ");
18
+ }
19
+ System.out.println();
20
21
22
23
24
+}
0 commit comments