Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. Write “Hello World” Program in 26 Different Programming Languages
  2. 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:
  3.  
  4. 1. C
  5.  
  6. #include   int main() {     printf("Hello, World"); return(0); }
  7.  
  8. 2. C++
  9.  
  10. #include   int main() {     std::cout << "Hello, World";     return 0; }
  11.  
  12. 3. C#
  13.  
  14. using System; class Program {     public static void Main(string[] args)     {         Console.WriteLine("Hello, World");     } }
  15.  
  16. 4. Bash
  17.  
  18. echo "Hello, World"
  19.  
  20. 5. Basic
  21.  
  22. PRINT "Hello, World"
  23.  
  24. 6. HTML
  25.  
  26.  Hello, World
  27.  
  28. 7. Java
  29.  
  30. public class Main { public static void main(String[] args) { System.out.println("Hello, World!"); } }
  31.  
  32. 8. Clipper
  33.  
  34. ? "Hello, World"
  35.  
  36. 9. Delphi
  37.  
  38. program HelloWorld; begin   Writeln('Hello, World'); end.
  39.  
  40. 10. CoffeeScript
  41.  
  42. console.log 'Hello, World'
  43.  
  44. 11. MatLab
  45.  
  46. disp('Hello, World')
  47.  
  48. 12. Julia
  49.  
  50. println("Hello, World")
  51.  
  52. 13. JavaScript
  53.  
  54. document.write('Hello, World');
  55.  
  56. 14. Logo
  57.  
  58. print [Hello, World]
  59.  
  60. 15. jQuery
  61.  
  62. $("body").append("Hello, World");
  63.  
  64. 16. Perl 5
  65.  
  66. print "Hello, World";
  67.  
  68. 17. Pascal
  69.  
  70. program HelloWorld; begin   WriteLn('Hello, World'); end.
  71.  
  72. 18. Objective-C
  73.  
  74. #import #import   int main(void) {     NSLog(@"Hello, World");     return 0; }
  75.  
  76. 19. Visual Basic .NET
  77.  
  78. Module Module1     Sub Main()         Console.WriteLine("Hello, World")     End Sub End Module
  79.  
  80. 20. R
  81.  
  82. cat('Hello, World')
  83.  
  84. 21. VBScript
  85.  
  86. MsgBox "Hello, World"
  87.  
  88. 22. XSLT
  89.  
  90.       Hello, World
  91.  
  92. 23. Processing
  93.  
  94. void setup(){   println("Hello, World"); }
  95.  
  96. 24. Ruby
  97.  
  98. puts "Hello, World"
  99.  
  100. 25. Swift
  101.  
  102. print("Hello, World")
  103.  
  104. and Last, but not least
  105.  
  106. 26. Python
  107.  
  108. print ("Hello, World")
  109.  
  110. 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
  111.  
  112. If there are any errors in the code mentioned above, feel free to mention the in the comment section.
  113.  
  114. print (" Happy Coding! ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement