+ 4

How to do a pattern programing in java

15th Mar 2018, 1:56 AM
Shahid Shaikh
Shahid Shaikh - avatar
3 Answers
+ 9
Pattern programming?
15th Mar 2018, 2:47 AM
Vukan
Vukan - avatar
15th Mar 2018, 4:39 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
pattern programming is done using matrix representation and nested for loops:one loop for controlling row number and second for controlling the column number. Start with a basic pattern and try to build the logic. For example:- Draw this- * ** *** **** ***** Then try to put spaces and draw this- * *** ***** and then move to more complex ones.Try to build the code by yourself and then only have the help of internet.
15th Mar 2018, 2:06 PM
Oshin Bajaj
Oshin Bajaj - avatar