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

30th Apr 2020, 8:02 AM
Ananda Aransa
Ananda Aransa - avatar
11 Réponses
+ 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.
30th Apr 2020, 8:32 AM
minirkk
minirkk - avatar
+ 1
st = "what is this for" N = int(input()) print(st[N:len(st)],st[0:N]) its seems like these are your assignment.
30th Apr 2020, 8:27 AM
minirkk
minirkk - avatar
+ 1
Yaah, i am sorry :(
30th Apr 2020, 8:29 AM
Ananda Aransa
Ananda Aransa - avatar
0
your attempt?
30th Apr 2020, 8:17 AM
minirkk
minirkk - avatar
0
I am stucked, i dont have any idea to solve this problem hehe
30th Apr 2020, 8:21 AM
Ananda Aransa
Ananda Aransa - avatar
0
[redacted]
30th Apr 2020, 10:34 AM
Juan Pablo Carrasco Socola
Juan Pablo Carrasco Socola - avatar
0
Juan Pablo Carrasco Socola Please don't spam in other threads. Please remove the whats app link.
30th Apr 2020, 11:37 AM
Denise Roßberg
Denise Roßberg - avatar
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"}
30th Apr 2020, 11:45 AM
Denise Roßberg
Denise Roßberg - avatar
0
Ananda Aransa i think, substring method from string class will perfectly work for you.. Check that..
30th Apr 2020, 1:28 PM
Jayakrishna 🇮🇳
0
What is program you are doing
1st May 2020, 3:42 PM
Sai Nadh
Sai Nadh - avatar
0
Can u send me the code
1st May 2020, 3:43 PM
Sai Nadh
Sai Nadh - avatar