Floyds triangle in C

Floyds Triangle in C

In this program, you will get and learn the program code of floyds triangle in c programming.

Floyd’s triangle is a triangular shaped, array of natural numbers aligned to right side. It starts from 1 and goes upto the input number. It was named on Robert Floyd  in 1960. Example of floyd’s triangle is the following:-

Floyd’s triangle :

 1

 2  3

 4   5   6

 7   8    9  10

 …………………….

 

Program code of floyds triangle in C

Input

Enter value of n : 5

 

Output

1

2    3

4    5   6

7    8    9  10

11 12  13 14  15

 

 

Check out our other C programming Examples

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top