Computer Science, asked by bhaumikpapri5, 2 months ago

WAP to print the PASCAL'S triangle till n rows in java
no spamming ​

Answers

Answered by jhamaya913
3

Answer:

  • Take a number of rows to be printed, n.
  • Make outer iteration I for n times to print rows.
  • Make inner iteration for J to (N - 1).
  • Print single blank space " ".
  • Close inner loop.
  • Make inner iteration for J to I.
  • Print nCr of I and J.
  • Close inner loop.
  • Print NEWLINE character after each inner iteration.

Hope this will helpful nd' don't forget to mark me brainlist ✌️✌️✌️

Similar questions