+ 1

Can someone help me to print pascals triangle

in java

26th Aug 2018, 7:05 PM
CoderšŸ‡®šŸ‡³ #21
7 Answers
+ 3
OK thanksšŸ˜ŠšŸ˜Š
26th Aug 2018, 7:25 PM
CoderšŸ‡®šŸ‡³ #21
+ 1
without loops/iteration, i'm afraid it's not doable
26th Aug 2018, 7:15 PM
hinanawi
hinanawi - avatar
+ 1
OK can you show it to me with loops? thanks a tonā˜ŗļøfor reply
26th Aug 2018, 7:20 PM
CoderšŸ‡®šŸ‡³ #21
+ 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
26th Aug 2018, 7:21 PM
hinanawi
hinanawi - avatar
+ 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
26th Aug 2018, 7:25 PM
hinanawi
hinanawi - avatar
0
thanks a lotā˜ŗļøā˜ŗļø
26th Aug 2018, 7:22 PM
CoderšŸ‡®šŸ‡³ #21
0
one more thing if I want to maintain it's triangular structure.,what should I do?
26th Aug 2018, 7:24 PM
CoderšŸ‡®šŸ‡³ #21