Morlom

Zadanie 7

Dec 6th, 2021
602
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. var dziennie = 2;
  3.         var suma = 2;
  4.  
  5.         for (let i = 1; i < 30; i++) {
  6.             dziennie *= 2;
  7.             suma += dziennie;
  8.         }
  9.  
  10.         document.write("Syn zaoszczędził " +parseInt(suma - (30 * 2))+ " zł");
  11. </script>
RAW Paste Data