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.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Tutorials
  3. 30 Days of Code
  4. Day 0: Hello, World.
  5. Discussions

Day 0: Hello, World.

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

Sort 2025 Discussions, By:

recency

Please Login in order to post a comment

  • Abhinav_Ronge
    2 hours ago+ 0 comments
    print("Hello, World.", input(), sep = "\n")
    
    0|
    Permalink
  • Abhinav_Ronge
    2 hours ago+ 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|
    Permalink
  • Abhinav_Ronge
    2 hours ago+ 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|
    Permalink
  • xXxAboodxXx
    5 hours ago+ 0 comments

    JavaScript

    function processData(inputString) {
        console.log("Hello, World.");
        console.log(inputString)
    }
    
    0|
    Permalink
  • alexsmithoffici1
    3 days ago+ 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.

    0|
    Permalink
Load more conversations

Need Help?


View tutorial
View editorial
View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy