All pastes #82875 Raw Edit

sumapromedio

public cpp v1 · immutable
·published 2006-07-09 01:07 UTC
rendered paste body
#include <iostream>using namespace std;#define TAM 10int i,suma,promedio;int main(){int array[TAM];cout << "Introduce 10 numeros enteros: " << endl;for (i=0;i<TAM;i++){cin>> array[TAM];suma+=array[TAM];promedio=suma[TAM]/10;}return 0;}