Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- 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;
- 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;
- }
Add Comment
Please, Sign In to add comment