『代码』··By/蜜汁炒酸奶

数组逆置

/* 功能:数组逆置 日期:2013-05-16 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #define LEN 6 int main(viod) { int A[LEN]={1,2,3,4,5,6},i; for(i=0;i<=LEN-1;i++) { A[i]=LEN-i; printf("%d ",A[i]); } printf(“n”); system(“pause”); return 0; }

预览
Loading comments...
0 条评论

暂无数据

example
预览