hello, world code example
Example 1: hello world
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Example 2: hello world
var message:string = "Hello World"
console.log(message)
Example 3: hello world
#include <iostream>
std::cout << "Hello, World!";
Example 4: hello world
echo("hello world");
Example 5: hello world
echo "Hello World";
Example 6: hello world
#include<bits/stdc++.h>
//you can also use using namespace std;
int main()
{
std::cout<<"hello world"; //this is a single line comment
return 0; /*used to end the main function */ /* this is an multi ine comment */
}
Example 7: hello world
#include<bits/stdc++.h>
//you can also use using namespace std;
int main()
{
std::cout<<"hello world"; //this is a single line comment
return 0; /*used to end the main function */ /* this is an multi ine comment */
}
Example 8: hello world
#include <iostream>
int main(){
cout << "Hello World!";
return 0;
}
Example 9: hello world
<style type="text/css">
h1 {
color: DeepSkyBlue;
}
</style>
<h1>Hello, world!</h1>
Example 10: hello world
Hello World!