Whenever we learn any programming language, we learn from basics and the basic starts from the simple program. The first program what we see in our books and tutorials is “Hello World”. In which we get to know that how the functions, methods are used in programming languages. This is the reason we are coming up with an article in which I am going to tell you about how you can say hello world in 26 different programming languages.
You may also like: Why Do Device Overheats And How To Fix Overheating Issues
Whenever you code you start coding with the specific software. If you want code in C or C++ then you need Turbo C or C++ software or borland C. Actually recently I was in a seminar in which I learned that every programming language is based on C. It means it is a base which you have to learn and later you can code in different languages.
If you are knowing C programming language then you can code in any language and create your own application. If you really want to start up with something then I will be telling you to start up with C language.
You may also like: Why Your Android Phone Isn’t Getting Latest System Update
My Experience In Programming Field
2 Years back. I start learning BSC(IT) [Bachelor in Science and Information Technology] I really wanted to learn something good. Then my professor started with C++ language. Basically it is an advance version of C language and some syntax are changed.
Actually, If you want to start learning any programming language I will suggest you to blindly go for C language. People think that C language is pretty outdated and no one use it. But the fact is that even Facebook uses the C++ programming language. Do you know why?
Also check out: Why Facebook Is Blue In Color ? Some Facts Which You Will Love It
Just because to make Facebook light and it can be accessed in any browser and mobile phones. If you think C is outdated then this is something wrong which you have heard.
Nowadays many people ask me that, How to create scripts? It is nothing but people uses Python and PHP language. Python the name looks a bit scary but if you will start learning C then python is simple language which you can learn in programming.
How You Can Say ‘Hello World’ In 26 Different Programming Languages
Let’s get started with the syntax and programs which you can say in programming. Some of them are easy and some of them are little bit tough.
1. C
#include
int main(void)
{
puts(“Hello, world!”);
}
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. Java
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. HTML
Hello World!
7. Python
print “Hello, world!”
8. Pascal
program HelloWorld;
begin
WriteLn(‘Hello, world!’);
end.
9. Ruby
puts “Hello, world!”
10. Visual Basic .NET
Module Module1
Sub Main()
Console.WriteLine(“Hello, world!”)
End Sub
End Module
11. MatLab
disp (‘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!”
21. Clipper
? “Hello World”
22. Delphi
program HelloWorld;
begin
Writeln(‘Hello, world!’);
end.
23. Julia
println(“Hello world!”)
24. Processing
void setup(){
println(“Hello, world!”);
}
25. R
cat(‘Hello, world!’)
26. Swift
println(“Hello, world!”)
Program code Source: AllTechBuzz
Wrapping up
Now, You know How You Can Say Hello World In 26 Different Programming Languages. I hope you love this article. Choose your programming field properly. Never here someone that this or that language is pretty outdated.
Share this article with your friends. Thank you for visiting and keep visiting for more tips and tricks like this and I will meet you in the next one. Peace out.
Hi bro
Can you help me
Sent me your theme plz
I like your site very much
But my site on blogger
Plz sent me mail
[email protected]
This site is on WordPress and the theme doesn’t supports blogger
Now, You know How You Can Say Hello World In 26 Different Programming Languages. I hope you love this article. Choose your programming field properly.