C program to Floyd’s triangle star pattern
- Home
- Floyd's triangle
- C program to Floyd’s triangle star pattern
- On
- By
- 0 Comment
- Categories: Floyd's triangle, star pattern
C program to Floyd’s triangle star pattern
C program to Floyd’s triangle star pattern
In this tutorial, we will discuss the C program to Floyd’s triangle star pattern.
This post to described how to create Floyd’s triangle star pattern using nested for loop in C language
Program 1
Code to Floyd’s triangle star pattern 1
#include#include int main() { int i,j,rows; printf("Enter number of rows you want: "); scanf("%d",&rows);//Input number of rows from user for(i=1; i When the above code is executed, it produces the following results:
floyd’s triangle pattern 1
Program 2
Code to Floyd’s triangle star pattern 2
#include#include int main() { int i,j,rows; printf("Enter number of rows you want: "); scanf("%d",&rows);//Input number of rows from user for(i=1; i
When the above code is executed, it produces the following results:
Triangle pattern 2 Program 3
Code to Floyd’s triangle star pattern 3
#include#include int main() { int i,j,rows; printf("Enter number of rows you want: "); scanf("%d",&rows);//Input number of rows from user for(i=1; i When the above code is executed, it produces the following results:
Triangle pattern 3 Program 4
Code to Floyd’s triangle star pattern 4
#include#include int main() { int i,j,rows; printf("Enter number of rows you want: "); scanf("%d",&rows);//Input number of rows from user for(i=1; i When the above code is executed, it produces the following results:
Triangle pattern 3
Suggested for you
Do-while loop in Java language
Similar post
Java program to print star pyramid pattern
C program to print star pyramid pattern
C++ program to print star pyramid pattern
Python program to print star pyramid pattern
Floyd’s triangle number pattern using for loop in C
Floyd’s triangle pattern using nested for loop in Java
Floyd’s triangle pattern using nested while loop in Java



