Print Hello Word in All Programming Language
1 Hello World In C
// Simple C program to
// display "Hello World"
// Header file for
// input output functions
#include <stdio.h>
// main function -
// where the execution of
// program begins
int main()
{
// prints hello world
printf("Hello World");
return 0;
}
2. Hello world in C++
// Simple C++ program to
// display "Hello World"
// Header file for
// input output functions
#include <iostream>
using namespace std;
// main function -
// where the execution of
// program begins
int main()
{
// prints hello world
cout << "Hello World";
return 0;
}
3. Hello World in C#
// C# program to print Hello World!
using System;
// namespace declaration
namespace HelloWorldApp {
// Class declaration
class Geeks {
// Main Method
static void Main(string[] args)
{
// statement
// printing Hello World!
Console.WriteLine("Hello World");
// To prevents the screen from
// running and closing quickly
Console.ReadKey();
}
}
}
4. Hello World in Java
// This is a simple Java program.
// FileName : "HelloWorld.java"
class HelloWorld {
// Your program begins
// with a call to main().
// Prints "Hello, World"
// to the terminal window.
public static void main(
String args[])
{
System.out.println("Hello World");
}
}
5. Hello World in Python
# Python code for "Hello World"
print("Hello World")
6. Hello World in Perl
#!/usr/bin/perl
# Modules used
use strict;
use warnings;
# Print function
print("Hello World\n");
# To run the code refer:
# http://bit.ly/2qLYVTG
7. Hello World in Scala
// Scala program to print Hello World!
object Geeks
{
// Main Method
def main(args: Array[String])
{
// prints Hello World
println("Hello World")
}
}
8. Hello World in Go
// Go program to print Hello World!
package main
import "fmt"
// Main function
func
main()
{
// prints Hello World
fmt.Println("!... Hello World ...!")
}
9. Hello World in PHP
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
10. Hello World in HTML
<html>
<header><title></title></header>
<body>
Hello World
</body>
</html>
Welcome to TryExperts- Truly the Market Place for Experts
Let me introduce you to Product TryExperts. It's a great platform for Experts & Users.
Free User Registration https://www.tryexperts.com/use-try-experts
Are you an Expert..? Yes So Please Free Registration https://www.tryexperts.com/register-experts
Register with us and put your question. Our experts will reach out to you. And this SERVICE is ABSOLUTELY FREE.
So with TRYEXPERTS get an answer to all your Technical Queries without spending Money and also save you valuable TIME.
No comments:
Post a Comment