0

Esto

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int am = scanner.nextInt(); for(int a = 1;a < 7;a++){ am = am - am / 10; } System.out.println(am); } }

22nd Jan 2021, 2:46 PM
Marcelo Fernandez Delgado
Marcelo Fernandez Delgado - avatar
1 Answer
+ 6
Los decimales se perderĂĄn si usamos int en lugar de double. Entonces, su cĂłdigo debe ser asĂ­ https://code.sololearn.com/c2bWC1O5kUU3/?ref=app
22nd Jan 2021, 3:16 PM
Simba
Simba - avatar