Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
238 B
2
Indexable
Never
function minTab(tab, n) {
    var tab = [10, 22, 7, 16, 2];
    var n = tab.length;
    var i = 0;
    var x = 0;

    while (i < n) {
        x += tab[i];
        i++;
    }
    var y = x / n;
    console.log(y);
}
minTab();