package com.codegym.task.task01.task0136;
/*
Even to the moon!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getWeight(888));
}
public static double getWeight(int earthWeight) {
// write your code here
double mweight;
mweight = earthWeight*(17/100);
return mweight;
}
}
package com.codegym.task.task01.task0136;
/*
Even to the moon!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getWeight(888));
}
public static double getWeight(int earthWeight) {
// write your code here
double mweight;
mweight = earthWeight*(17/100);
return mweight;
}
}