#include<stdio.h>
int main()
{
int i, a[10];
for (i = 0; i <= 9; i++)
a[i] = i;
for (i = 9; i >= 0; i--)
printf("%d ", a[i]);
printf("\n");
return 0; //This code first assigns a value to one variable and
// then outputs the 10 variables in reverse order
}
C语言变量逆序输出操作案例
最新推荐文章于 2024-07-18 11:11:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)