0
Please solve this problem using java, i am stucked
Drag character using java or c++ or c# or php Input One number (N) where (N) is a positive integer 0<N<25 Output: Drag characters from "This is the words" Based on input (N) from right to left you can see an example below Test cases Input 5 Output is the word This Input 17 Output This is the words
11 Answers
+ 3
don't be sorry
by at the end of the day the goal must be to learn something new.
I hope you are understanding it and keep practicing I know you will do things with flying colors.
+ 1
st = "what is this for"
N = int(input())
print(st[N:len(st)],st[0:N])
its seems like these are your assignment.
+ 1
Yaah, i am sorry :(
0
your attempt?
0
I am stucked, i dont have any idea to solve this problem hehe
0
[redacted]
0
Juan Pablo Carrasco Socola
Please don't spam in other threads. Please remove the whats app link.
0
Ananda Aransa
Do you know how to get user input?
And it looks like that you could need a String array with the words.
{"This", "is", "the", "word"}
0
Ananda Aransa i think, substring method from string class will perfectly work for you..
Check that..
0
What is program you are doing
0
Can u send me the code