+ 1
Can someone help me to print pascals triangle
in java
7 Antworten
+ 3
OK thanks😊😊
+ 1
without loops/iteration, i'm afraid it's not doable
+ 1
OK can you show it to me with loops? thanks a ton☺️for reply
+ 1
here's how to calculate a number in a specific row/column for a pascal triangle, this should help you
https://en.m.wikipedia.org/wiki/Pascal%27s_triangle
+ 1
Coder #21 that's pretty difficult as you would need to calculate spaces based on the number of digits, and eventually the console stops being big enough to display it all, so that's unnecessary
0
thanks a lot☺️☺️
0
one more thing if I want to maintain it's triangular structure.,what should I do?