Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct Slujitel{
  6. char ime_[20];
  7. char egn_[20];
  8. char otdel_[20];
  9. double zaplata_;
  10. };
  11.  
  12. int main(){
  13. int i;
  14. int n;
  15. cin >> n;
  16.  
  17. Slujitel E;
  18.  
  19. int min_zaplata;
  20.  
  21. for(i = 0; i < n; i++)
  22. {
  23. cin >> E.zaplata_;
  24.  
  25. if(i == 0)
  26. {
  27. min_zaplata = E.zaplata_;
  28. }
  29.  
  30. if(E.zaplata_ < min_zaplata)
  31. {
  32. min_zaplata = E.zaplata_;
  33. }
  34. }
  35.  
  36. cout << min_zaplata << endl;
  37.  
  38. return 0;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement