用java实现输入整数i输出i的绝对值f
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int i = scanner.nextInt();
int f = Math.abs(i);
System.out.println(f);
}
}
原文地址: https://www.cveoy.top/t/topic/bGiU 著作权归作者所有。请勿转载和采集!