Advertisement
BobMe

I got bored again at school: 1 but in javascript

Feb 21st, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function generatehash(x,y,t) {
  2. var xx = 0;
  3. var yy = 0;
  4. var hec = "";
  5. while(yy <= y) {
  6. for (var i = 1; i <= x; i++) {
  7. hec = hec+"#";
  8. }
  9. for (var h = 1; h <= t; h++) {
  10. print(hec);
  11. }
  12. yy++
  13. }
  14. }
  15.  
  16. generatehash(5,5,2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement