+ 1

What code should I make?

Exactly what the title says. What kind of code should I make? P.S. I wanna use ruby for that code. Any suggestions will be appreciated!(And probably will get done) NOTE: The BEST suggestion will get marked as "Best Answer"!

12th Apr 2017, 8:06 AM
zHooP
zHooP - avatar
8 Answers
+ 5
Alright try making this code: A user will need to input a string and then it outputs the same string but they're randomly cased down or up for example: INPUT: Hello World OUTPUT: heLLO wOrLD
12th Apr 2017, 8:54 AM
MrCoder
MrCoder - avatar
+ 6
Write a code on finding the Kaprekar constant. You take any 4-digit number and put its digits in a descending order. You then subtract from it the combination in ascending order. You do the same with the subtraction result until you reach a certain number, which, when transformed and performed the subtraction, shall not change anymore. Example: 3529 -> start 9532 - 2359 = 7173 7731 - 1377 = 6354 ...
12th Apr 2017, 9:10 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 5
@Dima Baliƫnas I'm done :)
12th Apr 2017, 9:09 AM
MrCoder
MrCoder - avatar
+ 4
@Domas Baliƫnas Trust yourself. I trust myself and I make awesome codes. Alright lets make a deal I'll code it in Python and you code it in Ruby. Okay? :)
12th Apr 2017, 9:00 AM
MrCoder
MrCoder - avatar
+ 3
@Domas Baliƫnas I wouldn't give up if I were you =) Thats where I get good at Ruby, I push myself even if I feel I'm weak. =D
12th Apr 2017, 11:03 AM
MrCoder
MrCoder - avatar
+ 1
literally cant get it to work
12th Apr 2017, 8:58 AM
zHooP
zHooP - avatar
+ 1
@MrCoder i'am not. idk how to get a random number from range 1..2
12th Apr 2017, 9:12 AM
zHooP
zHooP - avatar
+ 1
@MrCoder thats it ! I GIVE UP
12th Apr 2017, 9:25 AM
zHooP
zHooP - avatar