Here's my approach to this task. Not sure how to modify my code to pass the final test.
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) {
int feet = (int) Math.ceil((double)inches / 12);
return feet;
}
}