Answers for "how to print a triangle in c"

C
1

half pyramid in c

#include <stdio.h>
#define N 5
int main()
{
	int i,j;
	for(i=1;i<=N;i++)
		{
  			for(j=1;j<=i;j++)
    		printf("*");
  
  		printf("n");
		}
  return 0;
}
Posted by: Guest on November-10-2020
0

how print triangles in c

1
         1   1
       1   2   1
     1   3   3    1
   1  4    6   4   1
 1  5   10   10  5   1
Posted by: Guest on February-11-2021
-1

how print triangles in c

* * * * * * * * *
  * * * * * * *
    * * * * *
      * * *
        *
Posted by: Guest on February-11-2021

Code answers related to "how to print a triangle in c"

Code answers related to "C"

Browse Popular Code Answers by Language