Write a C program that uses a loop (or loops) to display the Pascal triangle with 9 rows as shown in the above figure. Your numbers should be saved in a file named pascal after. The numbers must be calculated, not hard coded. The triangle need not to be centered, you can display the triangle this way instead:
1 11 121 13 3 1 14641 1 5 10 10 5 1 16 15 20 15 61 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1
Write a C program that uses a loop (or loops) to display the Pascal triangle with 9 rows as shown in the above figure. Y
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a C program that uses a loop (or loops) to display the Pascal triangle with 9 rows as shown in the above figure. Y
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!