Java code for Printing Pascal Triangle

Java

Video is ready, Click Here to View ×


This program demonstrates the logic and code for Printing Pascal Triangle. Pascal Triangle prints the numbers in the following order
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1

This program gives hands on nested for loops.

If you like this video, don’t forget to subscribe , like and share this video

Please promote this channel , by sharing it with your friends who are searching / preparing for IT jobs in programming..

If you have any coding challenges ( questions ) , post them in the…

5 thoughts on “Java code for Printing Pascal Triangle

  1. I have little bit of problem with this formula. Actually it's against the standard and conventional programming. Because it has spilled values. when you have j=2 and i = 3
    your formula turns out number = number * (3-2)/(2+1)
    ==> number = number * (1)/(3)
    ==> number = number * 0.33
    though int/int show integer value 0.. this is against a good programming.

Leave a Reply

Your email address will not be published. Required fields are marked *