We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3935c7f commit 8573371Copy full SHA for 8573371
CompScience Procedures/src/CS05WorkingwithAnArrayOfTemperatures/multiplication.java
@@ -0,0 +1,26 @@
1
+package CS05WorkingwithAnArrayOfTemperatures;
2
+
3
+import java.util.Scanner;
4
5
+public class multiplication {
6
7
8
+ public static void main(String[] args){
9
+ Scanner in = new Scanner(System.in);
10
+ System.out.println("First number?");
11
+ double num1 = in.nextDouble();
12
+ System.out.println("second number?");
13
+ double num2 = in.nextDouble();
14
15
+ double X;
16
+ X=1;
17
+ for (int i = 1; i<=num2; i++){
18
+ X+=num2;
19
20
+ }
21
+ System.out.println("Result = " + X);
22
23
24
25
26
+}
0 commit comments