Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function suma(a,b)
- {
- document.write("Suma= " +(a+b));
- }
- function roznica(a,b)
- {
- document.write("RΓ³ΕΌnica= " +(a-b));
- }
- function iloczyn(a,b)
- {
- document.write("Iloczyn= " +(a*b));
- }
- function iloraz(a,b)
- {
- document.write("Iloraz= " +(a/b));
- }
- var x=parseInt(prompt("Podaj liczbe x="));
- var y=parseInt(prompt("Podaj liczbe y="));
- suma (x,y);
- roznica (x,y);
- iloczyn (x,y);
- iloraz (x,y);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement