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 #programming7 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.16
TRX 0.15
JST 0.030
BTC 58984.04
ETH 2551.66
USDT 1.00
SBD 2.35