C Program To Print Floyd's Triangle
Satish B
http://technotip.com/6867/c-program-to-print-floyds-triangle/
Lets write C program to print Floyd’s Triangle, using nested while loop.
Floyd’s Triangle: is a right angled Triangle formed with natural numbers.
For Example, if user enters num = 5, the following Triangle will be printed:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note that the Triangle printed is a right angled Triangle and has 5 rows of natural numbers.
Important Note: Also note that first row has 1 number. Second row has 2 numbers. Third row has 3 numbers and so on. So row number and total numbers in that particular row are always equal in any Floyd’s Triangle.
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=5olpgYeAUKU
6186590 Bytes