Tags

, ,

C Program to print the below pattern in the console
—————–

* * * * * * * * *

* * * * * * * *

* * * * * * *

* * * * * *

* * * * *

* * * *

* * *

* *

——————

#include<stdio.h>

#include<stdlib.h>

void main()

{

int n = 10;

for (int j = 0; j < n; ++j) {

for (int i = j; i < n; ++i) {

printf("* ");

}

printf("\n");

}

}