Average Of Numbers

in Hindi - Average Of Numbers



not yet

Source Code :

RUN#include<iostream.h>
#include <conio.h>

int main(){

int i, j, n, avg=0;

cout<<"Enter Number of values : ";
cin>>n;

for( i=0; i<n; i++ ){
cin>>j;
avg = avg + j;
}

avg = avg / n;

cout<<"Average of Entered numbers is "<<avg;

return 0;
}