2024-10-02 04:47:27
#include<stdio.h>
int main()
{
int A[6];
for(int i=0;i<6;i++){
int a;
printf("输入%d 个数字:" ,i+1 );
scanf("%d", &a);
A[i]=a;
}
printf("倒序输出:\r\n");
for(i=5;i>=0;i--){
printf("第%d个数字:%d\r\n" ,i+1,A[i] );
}
return 0;
};
2024-10-02 03:29:39
#include<cstdio>
using namespace std;
int f[6];
int main()
{
for(int i=0;i<=5;++i) scanf("%d",&f[i]);
for(int i=5;i>=0;--i) printf("%d ",f[i]);
return 0;
}
2024-10-02 07:04:29
2024-10-02 19:07:43
2024-10-02 09:55:36