1

Java patterns

A java program that displays a pattern according to the user's input: With patterns: num1 = # num2= ( num3= ) num4= _ This is my desired program: Input: 3 2 4 7 Output: # # # ( ( ) ) ) ) ______ Below is my code, but I only came to code num1 and num2 . Please help fix my code. https://code.sololearn.com/c728a149A12a

19th Jun 2021, 3:09 AM
Eka
Eka - avatar
1 Answer
0
You have to use the inputs and the loop counter to calculate the number of spaces in each iteration https://code.sololearn.com/cHeTp1K6WNHg/?ref=app
5th Aug 2021, 7:28 AM
David Martínez Castañón
David Martínez Castañón - avatar