Ad
Code
Diff
  • const cinema_auditorium = (spisok2D,ryad)=> {
      var output = (spisok2D[ryad].reduce((summaStulev,stulya ) => summaStulev + stulya, 0));
      console.log(output);
      var stulya = spisok2D[ryad].reduce((summaStulev,stulya ) => summaStulev + stulya, 0);
      return stulya;
    }
    • const cinema_auditorium = (spisok2D,ryad)=> {
    • console.log(spisok2D,ryad)
    • return 3
    • var output = (spisok2D[ryad].reduce((summaStulev,stulya ) => summaStulev + stulya, 0));
    • console.log(output);
    • var stulya = spisok2D[ryad].reduce((summaStulev,stulya ) => summaStulev + stulya, 0);
    • return stulya;
    • }
Code
Diff
  • const tab = (f, a, b, h) => {
      let sum = 0;
      for (let x = a; x<=b; x +=h){
        sum += f(x);
      }
     return sum;
    }
    • const tab = (f, a, b, h) => {
    • let sum = 0;
    • for (let x = a; x<=b; x +=h){
    • sum += f(x);
    • }
    • return sum;
    • }

Илюшина К.А.

Code
Diff
  • function sumNechet(a, b) {
    let sum = 0;
      for ( let i = a; i <= b; i ++)
      { if (i % 2!==0) {
        sum+=i
        }
      }
      return  sum;
      }
    
       
    
    • function sumNechet(a, b) {
    • }
    • let sum = 0;
    • for ( let i = a; i <= b; i ++)
    • { if (i % 2!==0) {
    • sum+=i
    • }
    • }
    • return sum;
    • }
    • function нечетное(число) {
    • }