Skip to content

Commit

Permalink
Merge pull request #198 from PavelOgienko/master
Browse files Browse the repository at this point in the history
homework_2
  • Loading branch information
mteplyi authored Nov 10, 2018
2 parents 876344a + a73b9de commit 545fe08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const h = 15;
for (let i = 1; i <= h; i++) {
console.log(' '.repeat(h - i) + '#'.repeat(i * 2 + 2));
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
for (let i = 500; i <= 1000; i++) {
const reversedNumber = i.toString().split('').reverse().join('');
if (reversedNumber === i.toString()) {
console.log(reversedNumber);
}
}

0 comments on commit 545fe08

Please sign in to comment.