
有一个整数数组,其中存放着序列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; }
👁️ 阅读量:0
© 版权声明:本文《有一个整数数组,其中存放着序列1,3,5,7,9,11,13,15,17,19。请将该序列倒序存放并输出。》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686520847a279051.html。