d579.
兩條線
--
raincole
| From: [140.129.108.184] |
發表日期
:
2010-02-24 19:53
import java.util.*;
//d579
public class nn{
public static void main(String[] args){
Scanner cin=new Scanner(System.in);
while(cin.hasNext()) {
double N=cin.nextDouble();
if(N<0)
N=N*(-1);
System.out.printf("|-%.4f|=%.4f\n",N,N);
if(N>=0)
System.out.printf("|%.4f|=%.4f\n",N,N);
}
}
}
為何測試時輸入N會跑出兩行