0
Whats wrong in this code?? It is showing error
import java.util.*; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println ("Enter your height in feet and inches"); double feet = sc.nextDouble; double inches = sc.nextDouble; double heightInCentimetres = (feet*30)+(inches*2.5); System .out.println ("Your height in centimetres is : " + heightInCentimetres ); } }
2 Respuestas
0
Thanks