What is Floyd’s triangle? Write a C# program to print a Floyd’s triangle.
What is Floyd’s triangle? Write a C# program to print a Floyd’s triangle.
I completed my post-graduation in 2013 in the engineering field. Engineering is the application of science and math to solve problems. Engineers figure out how things work and find practical uses for scientific discoveries. Scientists and inventors often get the credit for innovations that advance the human condition, but it is engineers who are instrumental in making those innovations available to the world. I love pet animals such as dogs, cats, etc.
Ashutosh Kumar Verma
23-Nov-2021Floyd’s triangle:
A Floyd’s triangle is a right angular array of natural numbers starts with 1. It start from top left corner with 1 and print in increment order. Follow is a C# program to print a Floyd’s triangle.
Program:
Output:
Taking input from user for number of row in triangle.
Program:
Output: