Making a calculator in various languages