Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include <math.h>
- #include <iomanip>
- #include <cstdio>
- using namespace std;
- int main() {
- int x, y, z;
- double xs, ys, zs;
- cin >> x >> y >> z;
- xs = (10 * x) - ((4.0 / 3.0) * x);
- ys = (10 * y) - ((4.0 / 3.0) * y);
- zs = (10 * z) - ((4.0 / 3.0) * z);
- if((xs > ys) && (xs > zs)){
- printf("Moto 1\n");
- return 0;
- }
- if(ys > xs && ys > zs){
- printf("Moto 2\n");
- return 0;
- }
- if(zs > xs && zs > ys){
- printf("Moto 3\n");
- return 0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement