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
4/30/2020 8:02:56 AM
Ananda Aransa11 Answers
New Answerdon'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.
st = "what is this for" N = int(input()) print(st[N:len(st)],st[0:N]) its seems like these are your assignment.
Juan Pablo Carrasco Socola Please don't spam in other threads. Please remove the whats app link.
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"}
Ananda Aransa i think, substring method from string class will perfectly work for you.. Check that..
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message