请设计程序实现功能:从键盘输入10个整数存入一维数组中,先输出下标为奇数的元素,空4格后再输出下

日期:2015-12-21 02:53:03 人气:1

请设计程序实现功能:从键盘输入10个整数存入一维数组中,先输出下标为奇数的元素,空4格后再输出下

//#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"int main(void){ int a[10],i; printf("Input 10 integers...\n"); for(i=0;i<10;i++) if(scanf("%d",a+i),i&1)
    A+
热门评论