Advertisement
noler89

Untitled

Jan 11th, 2015
159
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. using namespace std;
  3. struct test{
  4. double tmp;
  5.  
  6. };
  7. void main(){
  8. double min = 10000000000000000000;
  9. double m, n;
  10. cout << "Enter the razmernoct':";
  11. cin >> m;
  12. cout << "Enter the elements of our massiv:";
  13. test *go = new test[m];
  14. for (int i = 0; i < m; i++){
  15. cin >> go[i].tmp;
  16. }
  17. for (int i = 0; i < m; i++)
  18. if (go[i].tmp < min){
  19. min = go[i].tmp;
  20. }
  21. cout << "Minimum=" << min << endl;
  22. system("pause");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement