to print a value like ‘‘t rump’’…
c++ —> cout << “t rump”;
Java —> System.out.print(“t rump”);
python —> print “t rump”;
shell —> echo “t rump”;
text —> t rump
java script —> document.write(“t rump”);
Can you post the link of the problem? such that I’ll be sure it is not from an ongoing contest of other platform /s
3 Likes
no yar…input i want to take than…
I don’t get it.
If you want to take input like this, you can use “String” variable
eg: input…‘trump’
o/p… ‘t rump’
2 Likes
- Take the input as char array if you use c or c++
- Print the first character and then leave a space.
- Print the remaining characters.
i am using python…
Give a link to the problem or state the problem CLEARLY. We can’t help you otherwise.
2 Likes