admin管理员组

文章数量:1794759

有一个整数数组,其中存放着序列1,3,5,7,9,11,13,15,17,19。请将该序列倒序存放并输出。

有一个整数数组,其中存放着序列1,3,5,7,9,11,13,15,17,19。请将该序列倒序存放并输出。

#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int a[10]={1,3,5,7,9,11,13,15,17,19} ,i; for(i=0;i<10;i++) printf("%d\\t",a[9-i]); return 0; }

本文标签: 序列整数数组放着将该