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:

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

in programming •  7 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
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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