Submission #526967
Source Code Expand
import java.io.*; class test1{ public static void main(String args[]) throws IOException{ System.out.println("整数を二つ入力してください。"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int H1 = Integer.parseInt(str); String str2 = br.readLine(); int H2 = Integer.parseInt(str2); int c = H1-H2; System.out.println(c); } }