我一直在尝试获得输出 -
*****
****
***
**
*
在单独的行中,但 Xcode 在每行中显示 5 颗星。如何获得函数 j 的减值?
#include <stdio.h>
int main()
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=5;j>=1;j--)
{
printf("*");
}
printf("\n");
}
return 0;
}
最佳答案
关于c - 为什么函数 j 的值不递减?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34515358/