-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCounterTaskArray.java
More file actions
94 lines (83 loc) · 1.2 KB
/
CounterTaskArray.java
File metadata and controls
94 lines (83 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
public class CounterTaskArray{
// public static void main(String[]args){
public static void calmdown(int number){
for(int count = 100; count > number; count--){
System.out.print(count);
}
}
public static void main(String[]args){
int number = 1;
calmdown();
}
}
//
// int [] numbers = new int [10];
// int index =0;
// int sum =0;
// double average = 0;
//
// numbers [0] = 23;
// numbers [1] = 33;
// numbers [2] = 44;
// numbers [3] = 22;
// numbers [4] = 65;
// numbers [5] = 23;
// numbers [6] = 33;
// numbers [7] = 44;
// numbers [8] = 22;
// numbers [9] = 65;
//
// for(int count = 0;count < 10;count++){
//
// sum+=count;
// average = sum /10;
// if (numbers[count] > average);
// index++;
//
// }
//System.out.println(average);
//System.out.println(sum);
//System.out.println(index);
//
//
//
// }
//}
//
//
//
//int [] numbers ={3,4,5,6,67};
//
//for(int conut=0;count<4;count++){
// if(number > 0){
// if(number <0){
//
//System.out.println(number);
//
// }
//
//
// }
//
//}
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//