I am very happy to help you and can provide the following C language code: #include<stdio.h> int main() { int i, j, k; for(i=1;i<=5;i++) { for(j= 1;j<=5-i;j++) printf(" "); for(k=1;k<=2 i-1;k++) printf(" "); printf(""); } return 0; }
Help me write a five-pointed star in C language
Guess you like
Origin blog.csdn.net/weixin_42576410/article/details/129557906
Recommended
Ranking