#include<bits/stdc++.h>
using namespace std;
int main()
{ double c1,c2,mx;
string a1,a2,mxa;
cin>>c1>>a1;
mx=c1; mxa=a1;
for(int i=2;i<=50;i++)
{cin>>c2>>a2;
if (mx<c2)
{mx=c2;
mxa=a2;
}
cout<<mx<<"---max zarplata u "<<mxa<<" ☺☻♥♦♣♠•◘○☼";
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include<bits/stdc++.h>
using namespace std;
int main()
{ double c1,c2,mx;
string a1,a2,mxa;
cin>>c1>>a1;
mx=c1; mxa=a1;
for(int i=2;i<=50;i++)
{cin>>c2>>a2;
if (mx<c2)
{mx=c2;
mxa=a2;
}
}
cout<<mx<<"---max zarplata u "<<mxa<<" ☺☻♥♦♣♠•◘○☼";
}