fork download
  1. # space我換成 "." 和 "+" 方便閱讀
  2. for(i in 1:5) {
  3. cat(strrep(".", 5 - i))
  4. for (j in 1:5) {
  5. if (i >= j) cat(j)
  6. if (i > j) cat("+")
  7. }
  8. cat("\n")
  9. }
  10.  
Success #stdin #stdout 0.23s 39448KB
stdin
Standard input is empty
stdout
....1
...1+2
..1+2+3
.1+2+3+4
1+2+3+4+5