a799: 正值國
題目:http://zerojudge.tw/ShowProblem?problemid=a799
程式碼:
程式碼:
import java.util.Scanner;
public class a799 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc= new Scanner(System.in);
while(sc.hasNext()){
int n = sc.nextInt();//輸入數字
System.out.println(Math.abs(n));
}
}
}

留言
張貼留言