题目内容
写出下列程序的执行结果是:__________________。#include using namespace std;void main(){ int i, count=0, sum=0 ; double average ; int a[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } ; for( i=0; i<10; i++ ) { if( a[i] % 2 == 0 ) continue ; sum += a[ i ] ; count ++ ; } average = sum/count ; cout << "count=" << count << "," << "average=" << average << endl ;}
查看答案
搜索结果不匹配?点我反馈
更多问题