floyd's triangle

 

floyd's triangle





STUDY EVERTHING


#include <stdio.h>
#include <conio.h>

void main(){
    int i, j, n, rows;
    printf("Enter a number of rows: ");
    scanf("%d",&rows);
    n =1;
    for(i =1; i<= rows; i++)
  { for(j=1; j<=i; j++)
   { printf("%d",n);
    n++;
}
printf("\n");
}}



Post a Comment

If you have furthur QUERIES please let us know

Previous Post Next Post