Requirements - python installed with environment variables setup.
- Make a file named a.py
- Copy and past code from below into a.py.
- Execute/Run the code ``ptyhon a.py```
print "Hello World"
Requirements - linux machine or something that can compile c.
- Make a file named hello.c
- Copy and paste code from below into hello.c
- Compile the code
cc hello.c
- Execute/Run the code
./a.out
#include <stdio.h>
main() {
printf("Hello World");
}
Requriements - Java JDK isntalled.
- Make a file named A.java
- Copy and paste code into A.java
- Compile
javac A.java
- Execute/Run
java A
public class A {
public static void main(String []args) {
System.out.println("Hello World");
}
}
Requriements - linux or mac computer
- Make a file named a.sh
- Copy and paste code into a.sh
- Execute/Run
sh a.sh
#!/bin/bash
echo "Hello World"
- Make a file named a.html
- Copy and paste code into a.html
- Execute/Run the code (just double click the file)
Hello World