wklejamy.pl website for sale. You are interested in. Please contact. wklejamy@gmail.com
Click to buy coffe
Untitled
Guest 150 13th Mar, 2023
<script type="text/javascript">
var x = prompt("Podaj pierwszą liczbę","");
var y = prompt("Podaj drugą liczbę","");
var dzialanie = prompt("wybierz działanie\nd - dodawanie\no - odejmowanie\nm - mnożenie\ndd - dzielenie","");
x = parseInt(x);
y = parseInt(y);
var tmp = null;
var tmp_d = null;
switch(dzialanie){
case "d" : tmp = x + y; tmp_d = ' + '; break;
case "m" : tmp = x * y; tmp_d = ' * '; break;
case "o" : tmp = x - y; tmp_d = ' - '; break;
case "dd" : tmp = x / y; tmp_d = ' / '; break;
}
document.write(x + tmp_d + y + " = " + tmp );
</script>
To share this paste please copy this url and send to your friends
RAW Paste Data