Right angle Floyd's triangle

 #include <stdio.h>


int main (){

int totalrow=9, row , colomb;


for (row = 1 ; row <= totalrow; row++){

    for (colomb =1 ; colomb <= row; colomb++){

            //printf("%d ", row);

            printf("%d ", colomb);


    } printf("\n");

}


  return 0;

  }

Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation