|
@@ -127,7 +127,6 @@ c = c + '#'}
|
|
|
c = c + '.'}}
|
|
|
|
|
|
|
|
|
-
|
|
|
// numbers
|
|
|
let str = ''
|
|
|
for(i=0;i<10;i++){
|
|
@@ -140,22 +139,33 @@ for(i=0;i<10;i++){
|
|
|
// chess
|
|
|
|
|
|
let strn = ''
|
|
|
-for(f = 0;f<12;f++){
|
|
|
+for(f = 0;f<5;f++){
|
|
|
strn += '\n'
|
|
|
for(y = 0;y < 12;y++){
|
|
|
if(y % 2 === 1){
|
|
|
strn += '#'}
|
|
|
else {
|
|
|
-strn += '.'}}}
|
|
|
+strn += '.'}}
|
|
|
+strn += '\n'
|
|
|
+for(y = 0;y < 12;y++){
|
|
|
+ if(y % 2 === 1){
|
|
|
+strn += '.'}
|
|
|
+ else {
|
|
|
+strn += '#'}}}
|
|
|
+console.log(strn)
|
|
|
+
|
|
|
+// cubes;
|
|
|
|
|
|
-// cubes(?????????)<
|
|
|
+for(i = 0,arr = [];i <= 100; i++){
|
|
|
+ arr.push((i*i*i));
|
|
|
+ console.log(arr[i])}
|
|
|
|
|
|
// multiply table
|
|
|
|
|
|
debugger
|
|
|
-let result = '\n';
|
|
|
-for (let f = 1;f < 11; f++){
|
|
|
- for(let j = 1; j < 11; j++){
|
|
|
+let result = '';
|
|
|
+for (let f = 1;f < 10; f++){
|
|
|
+ for(let j = 1; j < 10; j++){
|
|
|
result += [f*j] + ' ';
|
|
|
}
|
|
|
result += '\n'
|
|
@@ -164,5 +174,5 @@ console.log(result)
|
|
|
|
|
|
// matrix to html table(????????)
|
|
|
|
|
|
-// не понял с этого задания>
|
|
|
+
|
|
|
|