Kashub's Code Barn - "Obliczenia matematyczne na podanej liczbie"

podświetlone jako freebasic (dodał(a) Kashub @ 2009-06-12 19:24:58)

Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
var n = prompt('Podaj liczbÄ™ n', 0);
if(isNaN(n)) {
	document.write('Nie oszukuj! Masz podać liczbę!');
} else {
	document.write('Wartość bezwzględna: '    + Math.abs(n) + '<br />');
	document.write('Sinus: '                  + Math.sin(n) + '<br />');
	document.write('Cosinus: '                + Math.cos(n) + '<br />');
	document.write('ZaokrÄ…glenie: '           + Math.round(n) + '<br />');
	document.write('Expotencjalna: '          + Math.exp(n) + '<br />');
	document.write('Logarytm naturalny: '     + Math.log(n) + '<br />');
	document.write('Pierwiastek 2. stopnia: ' + Math.sqrt(n) + '<br />');
	document.write('Kwadrat: '                + (n*n) + '<br />');
}
| Zdrowe jedzenie | | Zestawy perfum na prezent | | Odżywki i suplementy | | Spalacze tłuszczu | | Sklep z oponami | | Best Stand Mixers UK 2025 | | Jewelry & Accessories UK | | Make-up Shop UK | | Tyres UK | | Motorcycle Tyres UK |