#include <iostream.h>
#include <conio.h>
#include <stdlib.h>
int p[25],n=3;
float pse,mpe,mape,mse,mae,me;
float vr[25]={140,159,136,157,173,131,177,188,154,179,180,160,182,192,
224,188,198,206,203,238,228,231,221,259,273};
int a;
void simple(int);
int main()
{
int f=1;
clrscr();
for(int i=0;i<25;i++)
{
gotoxy(5,f); cout<<vr[i];
f++;
}
simple(n);
}
void simple(int n)
{
float st[25];
int y=n;
for(int x=1;x<=n;x++)
{
st[i]=sum+(vr[i]+vr[i+1])/n;
gotoxy(10,y); cout<<st[i];
y++;
//return st[i];
getch();
}
}