Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- #include<fstream>
- #include<string.h>
- using namespace std;
- void maxi(double a, double b, double &maxim)
- {
- double x, y;
- x=(int)a/100.0+(int)(a*100)%100;
- y=(int)b/100.0+(int)(b*100)%100;
- cout<<x<<" "<<y<<endl;
- maxim=a;
- if(maxim<b) maxim=b;
- if(maxim<x) maxim=x;
- if(maxim<y) maxim=y;
- }
- int main()
- {
- double n;
- maxi(33.17, 15.40, n);
- cout<<n;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement