title: How to echo a variable multiple times by multiplying it with another variable?
body: <p>I am writing a batch script and I am having trouble echoing a variable, here is the script,</p>
  
  <pre><code>@echo off
  set num1=1
  set num2=10
  set /a "out=%num1%*%num2%"
  echo %out%
  pause`
  </code></pre>
  
  <p>The output I receive is 10 which makes sense but I want it to echo 'num1' ten times instead of multiplying 'num1' by 'num2'. So I want the output to be 1111111111.</p>
  
  <p>Also I don't want to loop the command 10 times as I am putting the output into a text file with 'output>> file.txt' otherwise I will end up with this in the text file,</p>
  
  <pre><code>1
  1
  1
  1
  1
  1
  1
  1
  1
  1
  </code></pre>
  
  <p>I want to end up with 1111111111, thank you.</p>