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