+ 1

how to get a decimal number from user

24th Jul 2016, 9:43 PM
Redminote3 Note3
Redminote3 Note3 - avatar
2 Réponses
+ 1
Scanner s = new Scanner(System.in); System.out.println("Enter decimal: "); double decimal = s.nextDouble();
25th Jul 2016, 12:13 AM
Ivan Srdic
Ivan Srdic - avatar
0
system.out.println(scanner.nextdouble)
24th Jul 2016, 9:47 PM
Jordan Mason
Jordan Mason - avatar