Coding Challenge Solution-4
Coding Challenge#4 Solution
Here,goes Solution--
Explanation of code--
1.First we import scanner and create object s.
2.Take n number of rows as input.
3.Make outer loop with int i.
4.int sp loop for creating spaces.
5.int j loop for printing *'s in each row.
6.Println(); after j for loop takes cursor to next row.
Output:
1.Give input as the number of rows.
2.And we get the required Pattern.
Here,goes Solution--
Explanation of code--
1.First we import scanner and create object s.
2.Take n number of rows as input.
3.Make outer loop with int i.
4.int sp loop for creating spaces.
5.int j loop for printing *'s in each row.
6.Println(); after j for loop takes cursor to next row.
Output:
1.Give input as the number of rows.
2.And we get the required Pattern.
Thank You For visiting our website.
Stay,Tuned for New Fresh Content coming UP!!
Please ask any thing if(understood==false);
0 Comments