Hello guys,
My program works properly, whenever i put any number i want in my program, it gives me correct answer, but last condition it's not correct, can you help me with that?
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 result;
inches = 12;
int feet = 243;
result = feet / inches;
return result;
}
}