Facebook
From Buff Hummingbird, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 125
  1. function iloczyn(a,b){
  2.         var x=prompt("Podaj wynik: "+a+" * "+b+" "," ");
  3.         if(x==a*b)
  4.                         document.write("Brawo!Wynik poprawy.");
  5.                 else
  6.                         document.write("Błąd!"+a+" * "+b+"="+(a*b));
  7. }
  8. x=prompt("Podaj pierwszą liczbę: ");
  9. y=prompt("Podaj drugą liczbę: ");
  10. iloczyn(x,y);
  11.