Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write “Hello World” Program in 26 Different Programming Languages
- Printing “Hello World” on the console ( monitor ) is where most of the present senior programmers started once. When you are taking an online course, or learning a programming language for the first time, “Hello World” program is where you are most likely to start. So, today we will print the words ‘ Hello World ‘ on console using 27 different programming languages. I assume this article would help you distinguish how a program syntax changes from one programming language to another. Here we go starting with the Legendary C language:
- 1. C
- #include int main() { printf("Hello, World"); return(0); }
- 2. C++
- #include int main() { std::cout << "Hello, World"; return 0; }
- 3. C#
- using System; class Program { public static void Main(string[] args) { Console.WriteLine("Hello, World"); } }
- 4. Bash
- echo "Hello, World"
- 5. Basic
- PRINT "Hello, World"
- 6. HTML
- Hello, World
- 7. Java
- public class Main { public static void main(String[] args) { System.out.println("Hello, World!"); } }
- 8. Clipper
- ? "Hello, World"
- 9. Delphi
- program HelloWorld; begin Writeln('Hello, World'); end.
- 10. CoffeeScript
- console.log 'Hello, World'
- 11. MatLab
- disp('Hello, World')
- 12. Julia
- println("Hello, World")
- 13. JavaScript
- document.write('Hello, World');
- 14. Logo
- print [Hello, World]
- 15. jQuery
- $("body").append("Hello, World");
- 16. Perl 5
- print "Hello, World";
- 17. Pascal
- program HelloWorld; begin WriteLn('Hello, World'); end.
- 18. Objective-C
- #import #import int main(void) { NSLog(@"Hello, World"); return 0; }
- 19. Visual Basic .NET
- Module Module1 Sub Main() Console.WriteLine("Hello, World") End Sub End Module
- 20. R
- cat('Hello, World')
- 21. VBScript
- MsgBox "Hello, World"
- 22. XSLT
- Hello, World
- 23. Processing
- void setup(){ println("Hello, World"); }
- 24. Ruby
- puts "Hello, World"
- 25. Swift
- print("Hello, World")
- and Last, but not least
- 26. Python
- print ("Hello, World")
- I started my programming days with my first program in C which is printing ” Hello, World “on monitor. What was your first program ? Comment Below
- If there are any errors in the code mentioned above, feel free to mention the in the comment section.
- print (" Happy Coding! ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement