Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (35 loc) · 987 Bytes

index.md

File metadata and controls

47 lines (35 loc) · 987 Bytes
layout title nav_order description permalink
default
Home
1
Skiylia is a Dynamically typed, Object Oriented, Interpreted Programming Language.
/

Skiylia

Skiylia icon

Dynamically typed.

Interpreted.

Object Oriented.

View on GitHub{: .btn .fs-5 .mb-4 .mb-md-0 }

Example code

/// This contains a snippet of Skiylia-code that
    computes the factorial of a number. ///

def factorial(n):
  // return null if n is not an integer.
  if n !~~ 0:
    return null

  // return 1 if n is less than, or equal to, 2.
  if n <= 1:
    return 1

  // otherwise, recursively multiply.
  return n * factorial(n - 1)

var num = 6

print("The factorial of", num, "is", factorial(num))

/// Expected output:
    The factorial of 6 is 720 ///