Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <style>
- #wynik
- {
- margin-top:15px;
- width: 300px;
- height: 300px;
- border: 2px solid black;
- font-size: 20px;
- }
- button
- {
- width: 115px;
- }
- </style>
- Cyfry
- <input id="a1">
- <input id="b1">
- <button onclick="pisz()" >RYSUJ</button>
- <div id="wynik"></div>
- <script>
- function pisz(){
- var a=document.getElementById('a1').value;
- var b=document.getElementById('b1').value;
- for(var i=1;i<=a;i++){
- for(var j=1;j<=b;j++)
- document.getElementById('wynik').innerHTML+=i;
- document.getElementById('wynik').innerHTML+="<br>";
- }
- }
- </script>
- <html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement