Input
Output
#include <stdio.h> void main() { int n = 4, i, j, c = 1; //clrscr(); printf("Enter the no of rows for Floyd's triangle: "); printf("%d\n", n); for (i = 1; i <= n; i++) { for (j = 1; j <= i; j++) { printf("%d ",c); c++; } printf("\n"); } //getch(); }