#38 Finished Lab

Open
DeJonJohnson wants to merge 1 commits from DeJonJohnson/ZCW-SumOfInput-BlueJ:master into master
4 changed files with 29 additions and 6 deletions
  1. BIN
      Main.class
  2. 5
    0
      Main.ctxt
  3. 18
    0
      Main.java
  4. 6
    6
      package.bluej

BIN
Main.class View File


+ 5
- 0
Main.ctxt View File

1
+#BlueJ class context
2
+comment0.target=Main
3
+comment1.params=args
4
+comment1.target=void\ main(java.lang.String[])
5
+numComments=2

+ 18
- 0
Main.java View File

1
 /**
1
 /**
2
  * Created by iyasuwatts on 10/17/17.
2
  * Created by iyasuwatts on 10/17/17.
3
  */
3
  */
4
+import java.util.*;
4
 public class Main {
5
 public class Main {
5
 
6
 
6
     public static void main(String[] args){
7
     public static void main(String[] args){
7
 
8
 
9
+    
10
+    int randomNumber = 0;
11
+    Scanner input = new Scanner(System.in);
12
+    System.out.println("What's your input a number");
13
+    
14
+    int intVar = input.nextInt();
15
+    for ( int i = intVar; i>0; i--) {
16
+        randomNumber = randomNumber + i;
17
+        System.out.println(randomNumber);
8
     }
18
     }
19
+    
20
+    
21
+    
22
+    
23
+    
24
+}
25
+    
26
+    
9
 }
27
 }

+ 6
- 6
package.bluej View File

1
 #BlueJ package file
1
 #BlueJ package file
2
-editor.fx.0.height=0
3
-editor.fx.0.width=0
4
-editor.fx.0.x=0
5
-editor.fx.0.y=0
2
+editor.fx.0.height=722
3
+editor.fx.0.width=800
4
+editor.fx.0.x=320
5
+editor.fx.0.y=57
6
 objectbench.height=164
6
 objectbench.height=164
7
 objectbench.width=776
7
 objectbench.width=776
8
 package.divider.horizontal=0.6
8
 package.divider.horizontal=0.6
9
 package.divider.vertical=0.6845018450184502
9
 package.divider.vertical=0.6845018450184502
10
 package.editor.height=364
10
 package.editor.height=364
11
 package.editor.width=674
11
 package.editor.width=674
12
-package.editor.x=-816
13
-package.editor.y=445
12
+package.editor.x=100
13
+package.editor.y=100
14
 package.frame.height=600
14
 package.frame.height=600
15
 package.frame.width=800
15
 package.frame.width=800
16
 package.numDependencies=0
16
 package.numDependencies=0