Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- float n=0,s=0,count=0;
- while (n!=5555)
- {
- cin >> n;if (n<0) { count ++ ; s+=n;}
- }
- cout << s/count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement