Ad
Code
Diff
  • const cinema_auditorium = (spisok2D,ryad)=> {
       
      let tickets = spisok2D[ryad].reduce((sum,ticket ) => sum + ticket, 0);
      return tickets; //Filippov Ilya
    }
    • const cinema_auditorium = (spisok2D,ryad)=> {
    • console.log(spisok2D,ryad)
    • return 3
    • let tickets = spisok2D[ryad].reduce((sum,ticket ) => sum + ticket, 0);
    • return tickets; //Filippov Ilya
    • }
Code
Diff
  • const tab = (f, a, b, h) => {
     let sum = 0;
      for (let x = a; x <= b; x +=h){
        sum += f(x); //Filippov Ilya
      }
      return sum
    }
    • const tab = (f, a, b, h) => {
    • let sum = 0;
    • for (let x = a; x <= b; x +=h){
    • sum += f(x); //Filippov Ilya
    • }
    • 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 нечетное(число) {
      // Filippov Ilya
    }
    • function sumNechet(a, b) {
    • let sum = 0;
    • for(let i = a; i <= b; i++){
    • if (i % 2 !== 0){
    • sum += i
    • }
    • }
    • return sum;
    • }
    • function нечетное(число) {
    • function нечетное(число) {
    • // Filippov Ilya
    • }