Hello all.
Started to read the art and science of
Java and completing chapter exercises, below is pascals triangle as graphics program. I wanted to use the For loops which create the pyramid in combinations method. For this to work 3 If statements are used. I'm wondering if there is a better method to altering the values of the For loops to get the same outcome. At the moment if the pyramid size is increased in size I would need to add more if statements. Any advice greatly appreciated.