We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 0: Hello, World.
Day 0: Hello, World.
+ 0 comments print("Hello, World.", input(), sep = "\n")
+ 0 comments C++
int main() { // declaring a variable string st; // inputting line in the variable getline(cin, st); cout << "Hello, World.\n"; cout << st; return 0; }
+ 0 comments Java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); System.out.println("Hello, World."); System.out.println(str); }
+ 0 comments JavaScript
function processData(inputString) { console.log("Hello, World."); console.log(inputString) }
+ 0 comments Hey, the "welcome to" test is merely a sample, and the "hackerrank is best" test is meant to be a covert test case to see if your code works in various situations. When you want your code to be flexible, it makes sense.
Load more conversations
Sort 2025 Discussions, By:
Please Login in order to post a comment