07/05/30 22:35:21
>>148
import java.io.*;
class kadai {
public static void main(String[] args) throws IOException {
String s ;
double a,b;
BufferedReader kbd =
new BufferedReader(new InputStreamReader( System.in )) ;
System.out.print("数字を入力:");
s = kbd.readLine() ;
a = Integer.parseInt(s);
// ↑ここに注目
b=( a - 10.0 ) * 0.9 ;
System.out.println( "計算結果 = "+ b ) ;
}
}