- 5

Can you please help me by writing the code for this pattern in Java? Pattern is in description

Pattern is ABCDBCA ABCBA ABA A

3rd Oct 2020, 6:49 AM
Oishika Dey
Oishika Dey - avatar
4 Réponses
+ 5
Check your pattern again in first line you written B after D i think pattern may be look like this after D letter ABCDCBA C instead of B if i am correct then you can find logic of this program on Google .
3rd Oct 2020, 8:17 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
No, I am correct, This is what I have been instructed to do...if it were B after D in the first line of the pattern I would have done it by myself but there is the twist where I need to print B after D in the first line. I need help..If you can print it pls reply me as fast you can
3rd Oct 2020, 8:25 AM
Oishika Dey
Oishika Dey - avatar
0
well I guess the middle letter (D in the first line) is the input. just loop from A up to 1 less than that letter. then print the input letter. then do the first loop in reverse
3rd Oct 2020, 10:07 AM
John Doe
- 2
I need to write this pattern using loops...
3rd Oct 2020, 7:03 AM
Oishika Dey
Oishika Dey - avatar