Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <math.h>
- void main()
- {
- int a,n,i,k=0;
- double s=0;
- cout<<"\nEnter n";
- cin>>n;
- for(i=1;i<=n;i++)
- {
- cout<<"\nEnter a";
- cin>>a;
- s+=a;k++;
- }
- s=s/k;
- cout<<"\nSr. arifm="<<s<<"\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement