eng sodda kalkulyator kodi

DOCX 3 sahifa 13,7 KB Bepul yuklash

Sahifa ko'rinishi (3 sahifa)

Pastga aylantiring 👇
1 / 3
kalkulyator .calculator { width: 300px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 5px; text-align: center; } .calculator input[type="text"] { width: 100%; margin-bottom: 10px; padding: 10px; box-sizing: border-box; } .calculator button { width: 50px; height: 50px; margin: 5px; font-size: 20px; cursor: pointer; } 7 8 9 + 4 5 6 - 1 2 3 * 0 . c = function addtodisplay(value) { document.getelementbyid('display').value += value; } function cleardisplay() { document.getelementbyid('display').value = ''; } function calculate() { let display = document.getelementbyid('display'); try { display.value = eval(display.value); } catch (error) { display.value = 'error'; } }
2 / 3
eng sodda kalkulyator kodi - Page 2
3 / 3
eng sodda kalkulyator kodi - Page 3

Ko'proq o'qimoqchimisiz?

Barcha 3 sahifani Telegram orqali bepul yuklab oling.

To'liq faylni yuklab olish

"eng sodda kalkulyator kodi" haqida

kalkulyator .calculator { width: 300px; margin: auto; padding: 20px; border: 1px solid #ccc; border-radius: 5px; text-align: center; } .calculator input[type="text"] { width: 100%; margin-bottom: 10px; padding: 10px; box-sizing: border-box; } .calculator button { width: 50px; height: 50px; margin: 5px; font-size: 20px; cursor: pointer; } 7 8 9 + 4 5 6 - 1 2 3 * 0 . c = function addtodisplay(value) { document.getelementbyid('display').value += value; } function cleardisplay() { document.getelementbyid('display').value = ''; } function calculate() { let display = document.getelementbyid('display'); try { display.value = eval(display.value); } catch (error) { display.value = 'error'; } }

Bu fayl DOCX formatida 3 sahifadan iborat (13,7 KB). "eng sodda kalkulyator kodi"ni yuklab olish uchun chap tomondagi Telegram tugmasini bosing.

Teglar: eng sodda kalkulyator kodi DOCX 3 sahifa Bepul yuklash Telegram