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 ); } }

1st May 2020, 2:48 AM
Shubh Gupta
Shubh Gupta - avatar
2 Respuestas
0
Thanks
1st May 2020, 4:19 AM
Shubh Gupta
Shubh Gupta - avatar