38 by clamitze

VIEWS: 18 PAGES: 1

									#include<iostream.h> #include<conio.h> #include<iomanip.h> void main() {clrscr(); int n,i,s=0,m; float p,a[20]; cin>>n; for(i=1;i<=n;i++) cin>>a[i]; for(i=1;i<=n;i++) s=s+a[i]; m=n-1; cout<<"rezultat"<<endl; for(i=1;i<=n;i++) {a[i]=(s-a[i])/m; cout<<a[i]<<setprecision(2)<<endl;} getch(); }


								
To top