Commit f3587919 authored by Nurasyl's avatar Nurasyl

fix

parent b6f75697
...@@ -18,7 +18,6 @@ function showResult(arr) { ...@@ -18,7 +18,6 @@ function showResult(arr) {
}; };
function counterGroup(arr, num) { function counterGroup(arr, num) {
for(let i = 0; i < num; i++) {
if(num >= 0 && num <= 9) { if(num >= 0 && num <= 9) {
arr[0]++; arr[0]++;
} else if(num >= 10 && num <= 19) { } else if(num >= 10 && num <= 19) {
...@@ -40,7 +39,6 @@ function counterGroup(arr, num) { ...@@ -40,7 +39,6 @@ function counterGroup(arr, num) {
} else if(num >= 90 && num <= 99) { } else if(num >= 90 && num <= 99) {
arr[9]++; arr[9]++;
}; };
};
}; };
const groupArr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; const groupArr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment