const A = 6;
const B = 8;
let person = {
}
person.A = A;
person.B = B
console.log(person)
for (; person.A <= person.B; person.A++) {
console.log(person.A ** 3)
}
// Since Node 10, we're using Mocha.
// You can use `chai` for assertions.
const chai = require("chai");
const assert = chai.assert;
// Uncomment the following line to disable truncating failure messages for deep equals, do:
// chai.config.truncateThreshold = 0;
// Since Node 12, we no longer include assertions from our deprecated custom test framework by default.
// Uncomment the following to use the old assertions:
// const Test = require("@codewars/test-compat");
describe("Solution", function() {
it("should test for something", function() {
// Test.assertEquals(1 + 1, 2);
// assert.strictEqual(1 + 1, 2);
});
});
for (let i = 2; i <= 9; i++){
if (i){
console.log(`Дальше на ${i}:`)
}
for (let j = 1; j <= 10; j++){
console.log(i * j)
}
}
// Since Node 10, we're using Mocha.
// You can use `chai` for assertions.
const chai = require("chai");
const assert = chai.assert;
// Uncomment the following line to disable truncating failure messages for deep equals, do:
// chai.config.truncateThreshold = 0;
// Since Node 12, we no longer include assertions from our deprecated custom test framework by default.
// Uncomment the following to use the old assertions:
// const Test = require("@codewars/test-compat");
describe("Solution", function() {
it("should test for something", function() {
// Test.assertEquals(1 + 1, 2);
// assert.strictEqual(1 + 1, 2);
});
});
// В этом примере в промежутке от A до B 3 числа: 6, 7, 8.
// Для 6 делители: 2, 3. Для 7 их нет. Для 8: 2, 4.
// Т.е. нужно вывести последовательность из чисел 2, 3, 2, 4
const A = 6;
const B = 8;
// далее код
let num = {
}
num.A = A;
num.B = B;
for (; num.A <= num.B; num.A++){
ed: for (let j = 2; j < num.A; j++){
if (num.A % j == 0){
console.log(num.A / (num.A / j))
} else {
continue ed
}
}
}
// Since Node 10, we're using Mocha.
// You can use `chai` for assertions.
const chai = require("chai");
const assert = chai.assert;
// Uncomment the following line to disable truncating failure messages for deep equals, do:
// chai.config.truncateThreshold = 0;
// Since Node 12, we no longer include assertions from our deprecated custom test framework by default.
// Uncomment the following to use the old assertions:
// const Test = require("@codewars/test-compat");
describe("Solution", function() {
it("should test for something", function() {
// Test.assertEquals(1 + 1, 2);
// assert.strictEqual(1 + 1, 2);
});
});