C Program to Print Pattern
C Program to print triangle of stars
Program to print triangle of starts in C
C Program to print triangle
C Program to print pattern
Program
#include <stdio.h>
int main() {
int i, j;
for(i=1; i<=5; i++) {
for(j=1; j<=i; j++) {
printf("* ");
}
printf("\n");
}
return 0;
}
Output
*
* *
* * *
* * * *
* * * * *
Join Our Social Media Connections
0 Comments