Advertisement
andre_qramos

Harley

Sep 4th, 2020
1,327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include<iostream>
  2. #include <math.h>
  3. #include <iomanip>
  4. #include <cstdio>
  5. using namespace std;
  6.  
  7. int main() {
  8.     int x, y, z;
  9.     double xs, ys, zs;
  10.     cin >> x >> y >> z;
  11.     xs = (10 * x) - ((4.0 / 3.0) * x);
  12.     ys = (10 * y) - ((4.0 / 3.0) * y);
  13.     zs = (10 * z) - ((4.0 / 3.0) * z);
  14.     if((xs > ys) && (xs > zs)){
  15.         printf("Moto 1\n");
  16.         return 0;
  17.     }
  18.     if(ys > xs && ys > zs){
  19.         printf("Moto 2\n");
  20.         return 0;
  21.     }
  22.     if(zs > xs && zs > ys){
  23.         printf("Moto 3\n");
  24.         return 0;
  25.     }
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement