Write a program to print descending star pattern in C-language

Write a program to print descending star pattern in C language

*****
****
***
**
*


#include <stdio.h>

int main(){
int i,j;
for(i=5;i>=1;i--){
for(j=i;j>=1;j--){
printf("*");
}
printf("\n");
}
return 0;
}


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.