I just started learning java and encounter problem in writing a program that read in the value of height of a triangle. For example
1 AA
232 BBAA
34543 AABBAA
4567654 BBAABBAA
Anyone plz kindly help me to write this program using loop. I only know how to print out the homogenous pyramid (ie single character). My main problem is how to switch around the number and letter in each line(hope u know what i mean from my example)
Thank you