November 23, 2011 11:58 AM Subscribe
Programmingfilter: I created a program to output Pascals Triangle in Java (in Arrays). How can i change the shape of the output from a Rightsided triangle into a (typical for a Pascals Triangle) Isoceles shape?
posted by freddymetz to Computers & Internet (9 answers total)
Do i have to change something inside the System.out.print() command or do i need to do something beforehand?
-Also bonus question, how do i go about sorting out all of the prime numbers or all of the non-prime numbers out of an array?