All pastes #82926 Raw Edit

promedi

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