How to Use nested For loop for making patterns in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to Use nested For loop for making patterns in java?

14th Apr 2022, 6:42 AM
Stranger
Stranger - avatar
5 Answers
+ 1
That depends. What kind of patterns? What have you tried so far? Why did you tag C# and C++?
14th Apr 2022, 7:43 AM
Lisa
Lisa - avatar
0
Because for loop also use in c++ and c sharp
14th Apr 2022, 9:11 AM
Stranger
Stranger - avatar
0
A for-loop is used in almost any programming language. But if you need to solve the task if Java, C# and C++ are irrelevant. Tag ONLY Java. Which patterns? We cannot tell if you don't provide any information. Please show your own attempt.
14th Apr 2022, 9:23 AM
Lisa
Lisa - avatar
0
* ** *** **** *** ** *
14th Apr 2022, 9:31 AM
Stranger
Stranger - avatar
0
What have you tried? If you need help with the code, please link the script. If you are looking for inspiration, see here: https://www.phptpoint.com/print-star-pattern-in-java/
14th Apr 2022, 9:41 AM
Lisa
Lisa - avatar