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.

in #programming8 years ago (edited)

#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
Sort:  

Great going Elishagautam! Please do mention the language you've used and format it if possible.

Coin Marketplace

STEEM 0.15
TRX 0.25
JST 0.038
BTC 96161.22
ETH 1845.48
USDT 1.00
SBD 0.86