#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;
}
更多推荐
有一个整数数组,其中存放着序列1,3,5,7,9,11,13,15,17,19。请将该序列倒序存放并输出。
发布评论