SHARE
TWEET

sads

a guest Dec 3rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //zadanie 1
  2. var a = prompt("Wprowadź pierwsza liczbę");
  3. var b = prompt("Wprowadź druga liczbę");
  4. var c = prompt("Wprowadź trzecią liczbę");
  5. var suma= a+b+c;
  6. alert("Suma wynosi:"+" "+suma);
  7.  
  8. //zadanie2
  9.  
  10. var srednia= (a +b+c)/3;
  11. alert("Średnia wynosi"+srednia);
  12.  
  13. //zadanie 3
  14. var x;
  15. var y;
  16.  
  17. document.write(a+b);
  18. document.write(a+b);
  19. document.write(a+b);
  20. //zadanie 4
  21.  
  22. document.write(Math.sqrt(a));
  23.  
  24. //zadanie 5
  25. var a = prompt("Wprowadź bok");
  26. var pole = a*a
  27. document.write(pole)
  28. //zadanie 7
  29. function pole_kola(r)
  30. {
  31.     return Math.PI * r * r;
  32. }
  33.  
  34. function obwod_kola(r)
  35. {
  36.     return 2 * Math.PI * r;
  37. }
  38.  
  39. //zadanie 8
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top