Hi, VatsaDev here, today we're going to write hello world in 10 languages!
the ten languages
the 10 languages are
- Vyper
- Solidity
- Python
- Ruby
- Java
- JavaScript
- html
- C#
- C++
- bat script
Vyper
the vyper code is
# @version ^0.2.0
greet: public(String[100])
@external
def __init__():
self.greet = "Hello World"
Solidity
the Solidity code is
pragma solidity >=0.5.0 <0.7.0;
contract HelloWorld {
function get()public pure returns (string memory){
return 'Hello Contracts';
}
}
Python
the Python code is
print("hello world")
Ruby
the Ruby code is
puts("hello world")
Java
the Java code is
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Javascript
the JS code is
console.log("hello world");
Html
the Html code is
<p>hello world!</p>
C
the C# code is
Console.WriteLine("Hello World!");
C++
the C++ code is
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}
BAT
the BAT code is
echo hello World
email me more languages at vatsapandey123@gmail.com!
art by kurzgesagt