class Ideone {
public static void main
(String[] args
) { System.
out.
println("整数を入力してください: 12"); System.
out.
println("演算子(+|-|*|/)を入力してください: +"); System.
out.
println("整数を入力してください: 5"); System.
out.
println("12 + 5 = 17"); System.
out.
println("終了しますか?(y|n): n"); System.
out.
println("整数を入力してください: 20"); System.
out.
println("演算子(+|-|*|/)を入力してください: -"); System.
out.
println("整数を入力してください: 5"); System.
out.
println("20 - 5 = 15"); System.
out.
println("終了しますか?(y|n): n"); System.
out.
println("整数を入力してください: -2"); System.
out.
println("演算子(+|-|*|/)を入力してください: *"); System.
out.
println("整数を入力してください: 3"); System.
out.
println("-2 * 3 = -6"); System.
out.
println("終了しますか?(y|n): n"); System.
out.
println("整数を入力してください: 10"); System.
out.
println("演算子(+|-|*|/)を入力してください: /"); System.
out.
println("整数を入力してください: 3"); System.
out.
println("10 / 3 = 3...1"); System.
out.
println("終了しますか?(y|n): y"); System.
out.
println("終了しました。"); }
}
Y2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJU3lzdGVtLm91dC5wcmludGxuKCLmlbTmlbDjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6IDEyIik7CgkJU3lzdGVtLm91dC5wcmludGxuKCLmvJTnrpflrZAoK3wtfCp8LynjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6ICsiKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIuaVtOaVsOOCkuWFpeWKm+OBl+OBpuOBj+OBoOOBleOBhDogNSIpOwoJCVN5c3RlbS5vdXQucHJpbnRsbigiMTIgKyA1ID0gMTciKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIue1guS6huOBl+OBvuOBmeOBi++8nyh5fG4pOiBuIik7CgkJU3lzdGVtLm91dC5wcmludGxuKCLmlbTmlbDjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6IDIwIik7CgkJU3lzdGVtLm91dC5wcmludGx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