#Blog

"Hello, World!" program in 15 programming languages

        //C
        #include 
        int main()
        {
            printf(""Hello, World!"");
        }


        //C++
        #include 
        using namespace std;
        int main() 
        {
            cout << ""Hello, World!"";
            return 0;
        }


        //Java
        public class Main {
            public static void main(String[] args) {
              System.out.println(""Hello, World!"");
          }
        }


        //Python
        print(""Hello, World!"")


        //Javascript
        console.log(""Hello, World!"");


        //Nodejs
        console.log(""Hello, World!"");


        //PHP
        <?php
                echo ""Hello, World!""
        ?>


        //Ruby
        puts ""Hello, World!""


        //Rust
        fn main() {
            println!(""Hello, World!"");
        }


        //R
        cat(""Hello, World!"")


        //GO
        package main
        import ""fmt""
        func main() {
                fmt.Printf(""Hello, World!"")
        }


        //Kotlin
        fun main(args: Array) {
            println(""Hello, World!"")
        }


        //Swift
        print(""Hello, World!"")


        //Typescript
        console.log(""Hello, World!"")


        //coffeescript
        console.log(""Hello, World!"")
More posts

Community|Blog|Youtube|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024