+ 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"!
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
+ 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
...
+ 5
@Dima Baliƫnas I'm done :)
+ 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? :)
+ 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
+ 1
literally cant get it to work
+ 1
@MrCoder i'am not. idk how to get a random number from range 1..2
+ 1
@MrCoder thats it ! I GIVE UP