Stata is an actively used programming language created in 1985.

34Years Old 6,324Users 2Jobs

Example code from the Hello World Collection:

/* Hello world in Stata */

 .program hello
  1. display "Hello, World!"
  2. end
.hello

Example code from Linguist:

local MAXDIM   800

Example code from Wikipedia:

program define fizzbuzz
	args x
	forvalues i = 1(1)`x' {
		if mod(`i',15) == 0 {
			display "fizzbuzz"
		}
		else if mod(`i',5) == 0 {
			display "buzz"
		}
		else if mod(`i',3) == 0 {
			display "fizz"
		}
		else {
		display `i'
		}
	}
end
Edit

Last updated February 11th, 2019