RE: RE: 00. LPTHW (Appendix A) : Command Line Crash Course with Programming Challenge at the end, rewarding 25SBD for best solution.
You are viewing a single comment's thread from:

RE: 00. LPTHW (Appendix A) : Command Line Crash Course with Programming Challenge at the end, rewarding 25SBD for best solution.

RE: 00. LPTHW (Appendix A) : Command Line Crash Course with Programming Challenge at the end, rewarding 25SBD for best solution.

#Take2
Language used : Ruby


(1..100). each do |i|    
    val = ""
    if(i%3==0)
        val = "Steem"
    end   
    if(i%5==0)
        val +="It"
    end
    if (val == "")
        val = i
    end
    p val
end
H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center