Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- struct test{
- double tmp;
- };
- void main(){
- double min = 10000000000000000000;
- double m, n;
- cout << "Enter the razmernoct':";
- cin >> m;
- cout << "Enter the elements of our massiv:";
- test *go = new test[m];
- for (int i = 0; i < m; i++){
- cin >> go[i].tmp;
- }
- for (int i = 0; i < m; i++)
- if (go[i].tmp < min){
- min = go[i].tmp;
- }
- cout << "Minimum=" << min << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement