Laitofai

asda

Dec 12th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, otric=0;
  8.     double x;
  9.     cin>>n;
  10.     for(int i=1;i<=n;i++){
  11.         cin>>x;
  12.         while(x<0){
  13.             otric++;
  14.             x*=x;
  15.         }
  16.     }
  17.     cout<<otric;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment