CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 12:50:39 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=2f21707e8ce1ba7dedbedf85f1a476a8268731f7576de39df38d3c6954a6bf5da%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22R5rY8-nsLHC3UvLRfxMUN3HrvrDVdjdW%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ce7bff6e9f343c-BLR
function pyramid(baza, stypka) { let base = parseFloat(baza); let increm - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pyramid(baza, stypka) {
- let base = parseFloat(baza);
- let increment = parseFloat(stypka);
- let stone = 0;
- let marble = 0;
- let lapisLazuli = 0;
- let gold = 0;
- let heigth = 0;
- for (let i = base, j = 1; i > 0; i -= 2, j++) {
- heigth++;
- if (i == 1 || i == 2) {
- (gold += i * i * increment)
- break;
- }
- let width = i;
- let length = i;
- stone += ((width - 2) * (length - 2)) * increment;
- if (j % 5 !== 0) {
- marble += ((i * 4) - 4) * increment;
- }
- if (j % 5 === 0) {
- lapisLazuli += ((4 * i) - 4) * increment;
- }
- }
- console.log(`Stone required: ${Math.ceil(stone)}`);
- console.log(`Marble required: ${Math.ceil(marble)}`)
- console.log(`Lapis Lazuli required: ${Math.ceil(lapisLazuli)}`);
- console.log(`Gold required: ${Math.ceil(gold)}`);
- console.log(`Final pyramid height: ${Math.floor(heigth*increment)}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 1 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ Y
JavaScript | 6 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 7 sec ago | 0.24 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 17 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ P
JavaScript | 18 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ L
JavaScript | 21 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 28 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ 2
JavaScript | 33 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand