We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b087ac commit 0d9ab0eCopy full SHA for 0d9ab0e
Level-02/Task-13/src/Main.java
@@ -39,7 +39,7 @@ public static int getFactorial(int n) {
39
if (n <= 1) {
40
return 1;
41
} else {
42
- return n * factorial(n - 1);
+ return n * getFactorial(n - 1);
43
}
44
45
@@ -49,6 +49,7 @@ public static void calculateResult(double originalPrice) {
49
double discountedPrice = originalPrice - discountAmount;
50
double tax = 0.05;
51
double totalTax = discountedPrice * tax;
52
- System.out.println("For double " + originalPrice + ": Total cost after discount = " + discountedPrice + ", Total tax = " + totalTax);
+ System.out.println("For double " + originalPrice + ": Total cost after discount = " + discountedPrice
53
+ + ", Total tax = " + totalTax);
54
55
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments