Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,192,795 members, 7,948,865 topics. Date: Saturday, 14 September 2024 at 12:15 PM |
Nairaland Forum / Science/Technology / How To Say "Hello World" In Different Programming Languages (649 Views)
American Youths Will Own The World In Few Years / Omolabake Adenle Built A Software On African Languages / Breaking News: Etisalat Nigeria Is Dead! Say ‘hello’ To 9mobile (2) (3) (4)
How To Say "Hello World" In Different Programming Languages by TrillionBrains(m): 2:41pm On Dec 22, 2016 |
20 Ways To Say "Hello World" In Programming No doubt printing ‘Hello World’ is the most famous program. It is the first example in nearly every programming language for every programmer. Traditionally, it’s the first program developers use to test systems. For programmers, seeing the two words on the screen means their code can compile, load, run and they can see the output. In this article, Let’s talk about how to write HELLO WORLD program in 25 different programming languages. You’ll also know the difficulty and simplicity of these programming languages after looking at their syntax. 1. C PROGRAMMING #include int main(void) { puts(“Hello, world!”); } 2. C++ PROGRAMMING #include int main() { std::cout << “Hello, world!”; return 0; } 3. C# PROGRAMMING using System; class Program { public static void Main(string[] args) { Console.WriteLine(“Hello, world!”); } } 4. JAVA PROGRAMMING import javax.swing.JFrame; //Importing class JFrame import javax.swing.JLabel; //Importing class JLabel public class HelloWorld { public static void main(String[] args) { JFrame frame = new JFrame(); //Creating frame frame.setTitle(“Hi!”); //Setting title frame frame.add(new JLabel(“Hello, world!”));//Adding text to frame frame.pack(); //Setting size to smallest frame.setLocationRelativeTo(null); //Centering frame frame.setVisible(true); //Showing frame } } 5. JavaScript document.write(‘Hello, world!’); 6. Python PROGRAMMING print “Hello, world!” 7. Pascal Codes program HelloWorld; begin WriteLn(‘Hello, world!’); end. 8. Ruby puts “Hello, world!” 9. Visual Basic .NET Module Module1 Sub Main() Console.WriteLine(“Hello, world!”) End Sub End Module 10. MatLab disp (‘Hello, world!’) 11. Swift println(“Hello, world!”) 12. jQuery $(“body”).append(“Hello world!”); 13. Bash echo “Hello World” 14. Perl 5 print “Hello, world!”; 15. Basic PRINT “Hello, world!” 16. Objective-C #import #import int main(void) { NSLog(@”Hello, world!”); return 0; } 17. XSLT Hello World 18. CoffeeScript console.log ‘Hello, world!’ 19. Logo print [Hello, world!] 20. VBScript MsgBox “Hello, World!” http://trillionclues..com.ng/2016/12/how-to-say-hello-world-in-different.html |
Re: How To Say "Hello World" In Different Programming Languages by Davidhero(m): 3:28pm On Dec 22, 2016 |
wat abt html? |
Re: How To Say "Hello World" In Different Programming Languages by TrillionBrains(m): 3:37pm On Dec 22, 2016 |
Html is not a programming language rather a mark-up language, DIFFERENCE @Davidhero [url]trillionclues..com[/url] |
Re: How To Say "Hello World" In Different Programming Languages by Donald3d(m): 3:39pm On Dec 22, 2016 |
Davidhero:HTML isn't a programming language,its a Markup. But if i am to answer just type "Hello World" and save it as HTML then you are done 1 Like |
Re: How To Say "Hello World" In Different Programming Languages by Davidhero(m): 2:03pm On Dec 23, 2016 |
TrillionBrains: ok av got it, i just started html with code academy. The whole stuff is mind blowing. Also please do one need to memorize the whole stuff? Kinda strange.... thanks.... And Merry Christmas in advance. |
Re: How To Say "Hello World" In Different Programming Languages by Davidhero(m): 2:05pm On Dec 23, 2016 |
Donald3d: Thanks Sir, i nw understand. Merry Christmas in advance.... |
Re: How To Say "Hello World" In Different Programming Languages by Donald3d(m): 3:01pm On Dec 23, 2016 |
Davidhero:Merry Christmas bro |
(1) (Reply)
Genius! 16-year-old Boy Invents Cooking Stove Which Uses Battery, Charcoal In An / 6 Signs Your Child Is A Tech Addict / Google Developer Launchpad Accelerator Program | Apply Now
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13 |