title: For loop doesn't return any value using print() function
body: <p>I used for loop to iterate the print() function to print values from 1 to 100. This is the code that I used</p>
  <pre><code>for(i in 1:100){
    print(i)
  }
  </code></pre>
  <p>However, this code didn't return any value. When I use cat() function instead, it returned a value like this</p>
  <pre><code>for(i in 1:100){
    cat(i)
  }
  
  #Output: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  </code></pre>
  <p>Is there something wrong with my for loop? Or maybe there is something that I need to check in my Rstudio?
  P.S. This is what it looked like in my Rstudio
  <a href="https://i.stack.imgur.com/k1YGN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k1YGN.png" alt="enter image description here" /></a></p>