Asked by
AL MaMun (4 Golds)
Friday, 31 Jul 2020, 04:25 PM
at (Education
Tutorials)
|
|
|
|
C program to print Floyd Triangle #include<stdio.h> int main() { int i, j, n, number=1; scanf("%d", &n); for(i=0; i<n; i++) { for(j=0; j<=i; j++) { printf("%d ", number); number++; } printf("\n"); } return 0; } |