Docstoc

38

Document Sample
38 Powered By Docstoc
					#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(); }


				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:24
posted:11/3/2008
language:English
pages:1
Gavrilescu Vlad Gavrilescu Vlad
About