Skip to content

Commit 8573371

Browse files
committedMar 25, 2016
added CompScience Procedures\src\CS05WorkingwithAnArrayOfTemperatures\multiplication.java
1 parent 3935c7f commit 8573371

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.