The getFeetFromInches method must correctly return the number of full feet represented by the variable inches.
What does this condition mean?giving me task failed for this condition.
package com.codegym.task.task01.task0131;
/*
More conversions
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getFeetFromInches(28));
}
public static int getFeetFromInches(int inches) {
//write your code here
// int fet = Math.round(0.8333);
double Feet = 0.83 * inches;
int Fet = (int) Math.round(Feet);
return Fet;
}
}