You are on page 1of 2

#include<iostream>

#include<stdio.h>

using namespace std;

int main (int argc, char** argv) {

int num, suma = 0;

double prom;

for(int i = 0; i < 4; i++)

do{

cout<<" ..- Ingrese numero;"<<endl;

cin >> num;

}while( n < 0 || n > 10);

cout<<endl;

suma = suma + num;

prom = suma / 4.0;

cout<<"Promedio: "<<prom<<endl;

system("pause");

return 0;

You might also like