title: how to save print(i/j) to an output file?
body: <p>I did simple loop and got the result in print but not sure how to output it.</p>
  
  <p>This is what I coded:</p>
  
  <pre><code>&gt;for (i in 0:45) for (j in 0:45) print(i/j)
  [1] Inf
  [1] 1
  [1] 0.5
  [1] 0.3333333
  [1] 0.25
  [1] 0.2
  [1] 0.1666667
  [1] 0.1428571
  [1] 0.125
  [1] 0.1111111
  [1] 0.1
  </code></pre>
  
  <p>From here, how can i save this outcome? Should I make print (i/j) into an object or is there other way to save it into a file?
  thank you,</p>