daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Dec 7th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <!DOCTYPE HTML>
  2. <html lang="pl">
  3. <head>
  4.     <meta charset="utf-8" />
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6.    
  7.     <title></title>
  8.    
  9.     <meta name="description" content="Opis w Google" />
  10.     <meta name="keywords" content="słowa, kluczowe, wypisane, po, porzecinku" />
  11.     <script>
  12.     function f1()
  13.     {
  14.         var a = document.getElementById("a").value;
  15.         var b = document.getElementById("b").value;
  16.         var i;
  17.         var s = "";
  18.         for( i=a; i<=b; i++) s= s +i +" ";
  19.         document.getElementById("wynik").innerHTML = s;
  20.        
  21.        
  22.     }
  23.    
  24. </script>
  25.    
  26.     <style>
  27.  
  28. #wynik
  29. {
  30. color: deeppink;
  31. background-color: black;
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. }
  46.    
  47.     </style>
  48.    
  49.    
  50.    
  51. </head>
  52.  
  53. <body>
  54. <h1>Wypisz wszystkie liczby z przedziałuu zamkietego &lt;a,b&gt;</h1>
  55.  
  56.     <ul>
  57.     <li>podaj schemat blokowy</li>
  58.     <li>podaj kod cpp</li>
  59.     <li>napisz skrypt JS</li>
  60.     <li>podaj skrypt JS</li>
  61.     </ul>
  62.     <center>
  63.     <h2>Schemat blokowy</h2>
  64.     <img src = "tak.png">
  65.     </center>
  66.  
  67.     <h2>Kod cpp </h2>
  68.     <!-- HTML generated using hilite.me --><pre style="margin: 0; line-height: 125%"><span style="color: #999999; font-style: italic">#include &lt;iostream&gt;</span>
  69. <span style="color: #d0d0d0">using</span> <span style="color: #d0d0d0">namespace</span> <span style="color: #d0d0d0">std;</span>
  70. <span style="color: #24909d">int</span> <span style="color: #d0d0d0">main()</span>
  71. <span style="color: #d0d0d0">{</span>
  72.     <span style="color: #24909d">int</span> <span style="color: #d0d0d0">a,b;</span>
  73.     <span style="color: #d0d0d0">cin</span> <span style="color: #d0d0d0">&gt;&gt;</span> <span style="color: #d0d0d0">a</span> <span style="color: #d0d0d0">&gt;&gt;</span> <span style="color: #d0d0d0">b;</span>
  74.     <span style="color: #6ab825; font-weight: bold">for</span><span style="color: #d0d0d0">(</span><span style="color: #24909d">int</span> <span style="color: #d0d0d0">i=a;</span> <span style="color: #d0d0d0">i&lt;=b;</span> <span style="color: #d0d0d0">i++</span> <span style="color: #d0d0d0">)</span>
  75.         <span style="color: #d0d0d0">cout</span> <span style="color: #d0d0d0">&lt;&lt;</span> <span style="color: #d0d0d0">i</span> <span style="color: #d0d0d0">&lt;&lt;</span> <span style="color: #ed9d13">&quot; &quot;</span><span style="color: #d0d0d0">;</span>
  76.  
  77.  
  78.  
  79.  
  80. <span style="color: #d0d0d0">}</span>
  81. </pre>
  82.  
  83. <h2>Skrypt JS</h2>
  84. <p>Skrypt JS drukuje liczby z przedziału &lt;a,b&gt;</p><br>
  85. Podaj a <input type="number"  id = "a" value = 1 >
  86. Podaj b <input type="number"  id = "b" value = 100 >
  87. Licz     <input type="button"  value = "SHOW ME" onclick = "f1()">
  88.    
  89.     <div id="wynik">
  90.    
  91.    
  92.    
  93.    
  94.     </div>
  95.    
  96.    
  97.    
  98.     </body>
  99.  
  100.  
  101.  
  102.  
  103. </html>
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
 
Top