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 d03c65c commit a95884dCopy full SHA for a95884d
challenge9.java
@@ -0,0 +1,18 @@
1
+import java.util.Scanner;
2
+
3
+// Create a program to calculate simple intrest.🚀
4
+public class challenge9 {
5
+ public static void main(String[] args) {
6
+ Scanner input = new Scanner(System.in);
7
+ System.out.println("Calculate Simple Intrest");
8
+ System.out.println("Enter principle amount: ");
9
+ double p = input.nextDouble();
10
+ System.out.println("Enter time period: ");
11
+ int t = input.nextInt();
12
+ System.out.println("Enter rate amount: ");
13
+ double r = input.nextDouble();
14
+ double si = (p * t * r) / 100;
15
+ double fv = p + si;
16
+ System.out.println("Simple Intrest is :" + fv);
17
+ }
18
+}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments