クエスチョン1~8 完了しました。

This commit is contained in:
s-ohasi
2026-09-11 16:23:49 +09:00
parent 1efcc4228c
commit 2418206e26
8 changed files with 17 additions and 9 deletions

View File

@@ -9,7 +9,9 @@ public class PTra02_06 {
public static void main(String[] args) {
// 以下のプログラムを実行すると割り算の結果の小数点以下が切り捨てられてしまいます。
// TODO 切り捨てられないように修正してください。
System.out.println(9/2);
double a = 9;
int b = 2;
System.out.println(a/b);
}