+ 1

Can someone help me to print pascals triangle

in java

26th Aug 2018, 7:05 PM
Coder🇮🇳 #21
7 Réponses
+ 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